Skip to content

Commit a63db21

Browse files
Merge branch 'main' into drivers_pwm_rts5912
2 parents 3baeb0a + 8d6ab28 commit a63db21

File tree

5,138 files changed

+184198
-61981
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,138 files changed

+184198
-61981
lines changed

.clang-format

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ IndentCaseLabels: false
9999
IndentGotoLabels: false
100100
IndentWidth: 8
101101
InsertBraces: true
102+
InsertNewlineAtEOF: true
102103
SpaceBeforeInheritanceColon: False
103104
SpaceBeforeParens: ControlStatementsExceptControlMacros
104105
SortIncludes: Never

.github/ISSUE_TEMPLATE/007_ext-source.md

+9
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ required to maintain ...)
4949
Why is this the right component to solve it (e.g., SQLite is small,
5050
easy to use, and has a very liberal license.)
5151

52+
## Security
53+
54+
Does this component include any cryptographic functionality?
55+
If so, please describe the cryptographic algorithms and protocols used.
56+
57+
How does this component handle security vulnerabilities and updates?
58+
Are there any known vulnerabilities in this component? If so, please
59+
provide details and references to any CVEs or security advisories.
60+
5261
## Dependencies
5362

5463
What other components does this package depend on?

.github/SECURITY.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ updates:
1111
At this time, with the latest release of v4.0, the supported
1212
versions are:
1313

14-
- v4.0: Current release
15-
- v3.7: Prior release and Current LTS
16-
- v2.7: Prior LTS
14+
- v4.1: Current release
15+
- v4.0: Prior release
16+
- v3.7: Current LTS
1717

1818
## Reporting process
1919

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
paths:
2+
- .github

.github/codeql/codeql-js-config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
paths:
2+
- doc

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
version: 2
2+
enable-beta-ecosystems: true
23
updates:
34
- package-ecosystem: "github-actions"
45
directory: "/"
@@ -11,3 +12,15 @@ updates:
1112
actions-deps:
1213
patterns:
1314
- "*"
15+
16+
- package-ecosystem: "uv"
17+
directory: "/doc"
18+
schedule:
19+
interval: "weekly"
20+
commit-message:
21+
prefix: "ci: doc: "
22+
labels: []
23+
groups:
24+
doc-deps:
25+
patterns:
26+
- "*"

.github/workflows/assigner.yml

+19-6
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,36 @@ on:
1515
types:
1616
- labeled
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
assignment:
2023
name: Pull Request Assignment
2124
if: github.event.pull_request.draft == false
2225
runs-on: ubuntu-22.04
26+
permissions:
27+
pull-requests: write # to add assignees to pull requests
28+
issues: write # to add assignees to issues
2329

2430
steps:
25-
- name: Install Python dependencies
26-
run: |
27-
pip install -U PyGithub>=1.55 west
28-
2931
- name: Check out source code
30-
uses: actions/checkout@v4
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+
34+
- name: Set up Python
35+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
36+
with:
37+
python-version: 3.12
38+
cache: pip
39+
cache-dependency-path: scripts/requirements-actions.txt
40+
41+
- name: Install Python packages
42+
run: |
43+
pip install -r scripts/requirements-actions.txt --require-hashes
3144
3245
- name: Run assignment script
3346
env:
34-
GITHUB_TOKEN: ${{ secrets.ZB_GITHUB_TOKEN }}
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3548
run: |
3649
FLAGS="-v"
3750
FLAGS+=" -o ${{ github.event.repository.owner.login }}"

.github/workflows/backport.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
backport:
1215
name: Backport
1316
runs-on: ubuntu-22.04
17+
permissions:
18+
contents: write # to create/push backport branches
19+
pull-requests: write # to create backport PRs
20+
issues: write # to add labels to issue created if backport fails
1421
# Only react to merged PRs for security reasons.
1522
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
1623
if: >
@@ -24,8 +31,8 @@ jobs:
2431
)
2532
steps:
2633
- name: Backport
27-
uses: zephyrproject-rtos/[email protected]
34+
uses: zephyrproject-rtos/action-backport@7e74f601d11eaca577742445e87775b5651a965f # v2.0.3-3
2835
with:
29-
github_token: ${{ secrets.ZB_GITHUB_TOKEN }}
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
3037
issue_labels: Backport
3138
labels_template: '["Backport"]'

.github/workflows/backport_issue_check.yml

+20-8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
branches:
1111
- v*-branch
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
backport:
1518
name: Backport Issue Check
@@ -18,21 +21,30 @@ jobs:
1821
cancel-in-progress: true
1922
runs-on: ubuntu-22.04
2023
if: github.repository == 'zephyrproject-rtos/zephyr'
24+
permissions:
25+
issues: read # to check if associated issue exists for backport
2126

2227
steps:
2328
- name: Check out source code
24-
uses: actions/checkout@v4
29+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30+
31+
- name: Set up Python
32+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
33+
with:
34+
python-version: 3.12
35+
cache: pip
36+
cache-dependency-path: scripts/requirements-actions.txt
2537

26-
- name: Install Python dependencies
38+
- name: Install Python packages
2739
run: |
28-
pip install -U pygithub
40+
pip install -r scripts/requirements-actions.txt --require-hashes
2941
3042
- name: Run backport issue checker
3143
env:
32-
GITHUB_TOKEN: ${{ secrets.ZB_GITHUB_TOKEN }}
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3345
run: |
3446
./scripts/release/list_backports.py \
35-
-o ${{ github.event.repository.owner.login }} \
36-
-r ${{ github.event.repository.name }} \
37-
-b ${{ github.event.pull_request.base.ref }} \
38-
-p ${{ github.event.pull_request.number }}
47+
-o ${{ github.event.repository.owner.login }} \
48+
-r ${{ github.event.repository.name }} \
49+
-b ${{ github.event.pull_request.base.ref }} \
50+
-p ${{ github.event.pull_request.number }}

.github/workflows/bsim-tests-publish.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,26 @@ on:
55
workflows: ["BabbleSim Tests"]
66
types:
77
- completed
8+
9+
permissions:
10+
contents: read
11+
812
jobs:
913
bsim-test-results:
1014
name: "Publish BabbleSim Test Results"
1115
runs-on: ubuntu-22.04
1216
if: github.event.workflow_run.conclusion != 'skipped'
17+
permissions:
18+
checks: write # to create the check run entry with test results
1319

1420
steps:
1521
- name: Download artifacts
16-
uses: dawidd6/action-download-artifact@v8
22+
uses: dawidd6/action-download-artifact@07ab29fd4a977ae4d2b275087cf67563dfdf0295 # v9
1723
with:
1824
run_id: ${{ github.event.workflow_run.id }}
1925

2026
- name: Publish BabbleSim Test Results
21-
uses: EnricoMi/publish-unit-test-result-action@v2
27+
uses: EnricoMi/publish-unit-test-result-action@170bf24d20d201b842d7a52403b73ed297e6645b # v2.18.0
2228
with:
2329
check_name: BabbleSim Test Results
2430
comment_mode: off

.github/workflows/bsim-tests.yaml

+15-9
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ on:
2727
- "include/zephyr/net/ieee802154*"
2828
- "drivers/serial/*nrfx*"
2929
- "tests/drivers/uart/**"
30+
- '!**.rst'
31+
32+
permissions:
33+
contents: read
3034

3135
concurrency:
3236
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
@@ -45,6 +49,9 @@ jobs:
4549
BSIM_OUT_PATH: /opt/bsim/
4650
BSIM_COMPONENTS_PATH: /opt/bsim/components
4751
EDTT_PATH: ../tools/edtt
52+
permissions:
53+
checks: write # to create the check run entry with test results
54+
4855
steps:
4956
- name: Apply container owner mismatch workaround
5057
run: |
@@ -67,7 +74,7 @@ jobs:
6774
git remote set-url origin ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
6875
6976
- name: Checkout
70-
uses: actions/checkout@v4
77+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7178
with:
7279
fetch-depth: 0
7380

@@ -91,7 +98,7 @@ jobs:
9198
echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
9299
93100
- name: Check common triggering files
94-
uses: tj-actions/changed-files@v45
101+
uses: tj-actions/changed-files@823fcebdb31bb35fdf2229d9f769b400309430d0 # v46.0.3
95102
id: check-common-files
96103
with:
97104
files: |
@@ -110,7 +117,7 @@ jobs:
110117
modules/hal_nordic/**
111118
112119
- name: Check if Bluethooth files changed
113-
uses: tj-actions/changed-files@v45
120+
uses: tj-actions/changed-files@823fcebdb31bb35fdf2229d9f769b400309430d0 # v46.0.3
114121
id: check-bluetooth-files
115122
with:
116123
files: |
@@ -119,7 +126,7 @@ jobs:
119126
subsys/bluetooth/
120127
121128
- name: Check if Networking files changed
122-
uses: tj-actions/changed-files@v45
129+
uses: tj-actions/changed-files@823fcebdb31bb35fdf2229d9f769b400309430d0 # v46.0.3
123130
id: check-networking-files
124131
with:
125132
files: |
@@ -132,7 +139,7 @@ jobs:
132139
include/zephyr/net/ieee802154*
133140
134141
- name: Check if UART files changed
135-
uses: tj-actions/changed-files@v45
142+
uses: tj-actions/changed-files@823fcebdb31bb35fdf2229d9f769b400309430d0 # v46.0.3
136143
id: check-uart-files
137144
with:
138145
files: |
@@ -172,29 +179,28 @@ jobs:
172179
173180
- name: Merge Test Results
174181
run: |
175-
pip install junitparser junit2html
176182
junitparser merge --glob "./bsim_*/*bsim_results.*.xml" "./twister-out/twister.xml" junit.xml
177183
junit2html junit.xml junit.html
178184
179185
- name: Upload Unit Test Results in HTML
180186
if: always()
181-
uses: actions/upload-artifact@v4
187+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
182188
with:
183189
name: HTML Unit Test Results
184190
if-no-files-found: ignore
185191
path: |
186192
junit.html
187193
188194
- name: Publish Unit Test Results
189-
uses: EnricoMi/publish-unit-test-result-action@v2
195+
uses: EnricoMi/publish-unit-test-result-action@170bf24d20d201b842d7a52403b73ed297e6645b # v2.18.0
190196
with:
191197
check_name: Bsim Test Results
192198
files: "junit.xml"
193199
comment_mode: off
194200

195201
- name: Upload Event Details
196202
if: always()
197-
uses: actions/upload-artifact@v4
203+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
198204
with:
199205
name: event
200206
path: |

.github/workflows/bug_snapshot.yaml

+15-4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
# Run daily at 14:05
1414
- cron: '5 14 * * *'
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
make_bugs_pickle:
1821
name: Make bugs pickle
@@ -21,11 +24,19 @@ jobs:
2124

2225
steps:
2326
- name: Checkout
24-
uses: actions/checkout@v4
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
29+
- name: Set up Python
30+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
31+
with:
32+
python-version: 3.12
33+
cache: pip
34+
cache-dependency-path: scripts/requirements-actions.txt
2535

26-
- name: Install Python dependencies
36+
- name: Install Python packages
2737
run: |
28-
pip install -U pygithub
38+
pip install -r scripts/requirements-actions.txt --require-hashes
39+
2940
3041
- name: Snapshot bugs
3142
env:
@@ -41,7 +52,7 @@ jobs:
4152
echo "BUGS_PICKLE_PATH=${BUGS_PICKLE_PATH}" >> ${GITHUB_ENV}
4253
4354
- name: Configure AWS Credentials
44-
uses: aws-actions/configure-aws-credentials@v4
55+
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
4556
with:
4657
aws-access-key-id: ${{ vars.AWS_BUILDS_ZEPHYR_BUG_SNAPSHOT_ACCESS_KEY_ID }}
4758
aws-secret-access-key: ${{ secrets.AWS_BUILDS_ZEPHYR_BUG_SNAPSHOT_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)