Skip to content

Commit 73efea4

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent ea63516 commit 73efea4

Some content is hidden

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

42 files changed

+285
-0
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,18 @@ updates:
2323
doc-deps:
2424
patterns:
2525
- "*"
26+
27+
- package-ecosystem: pip
28+
directory: /scripts/dts/python-devicetree
29+
schedule:
30+
interval: daily
31+
32+
- package-ecosystem: pip
33+
directory: /scripts
34+
schedule:
35+
interval: daily
36+
37+
- package-ecosystem: pip
38+
directory: /tests/net/lib/lwm2m/interop
39+
schedule:
40+
interval: daily

.github/workflows/assigner.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929

3030
steps:
3131

32+
- name: Harden the runner (Audit all outbound calls)
33+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
34+
with:
35+
egress-policy: audit
36+
3237
- name: Check out source code
3338
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3439

.github/workflows/backport.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
)
3131
)
3232
steps:
33+
- name: Harden the runner (Audit all outbound calls)
34+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
35+
with:
36+
egress-policy: audit
37+
3338
- name: Backport
3439
uses: zephyrproject-rtos/action-backport@7e74f601d11eaca577742445e87775b5651a965f # v2.0.3-3
3540
with:

.github/workflows/backport_issue_check.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
issues: read # to check if associated issue exists for backport
2626

2727
steps:
28+
- name: Harden the runner (Audit all outbound calls)
29+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
30+
with:
31+
egress-policy: audit
32+
2833
- name: Check out source code
2934
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3035

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
checks: write # to create the check run entry with test results
1919

2020
steps:
21+
- name: Harden the runner (Audit all outbound calls)
22+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
23+
with:
24+
egress-policy: audit
25+
2126
- name: Download artifacts
2227
uses: dawidd6/action-download-artifact@20319c5641d495c8a52e688b7dc5fada6c3a9fbc # v8
2328
with:

.github/workflows/bsim-tests.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ jobs:
5252
checks: write # to create the check run entry with test results
5353

5454
steps:
55+
- name: Harden the runner (Audit all outbound calls)
56+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
57+
with:
58+
egress-policy: audit
59+
5560
- name: Apply container owner mismatch workaround
5661
run: |
5762
# FIXME: The owner UID of the GITHUB_WORKSPACE directory may not

.github/workflows/bug_snapshot.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
if: github.repository_owner == 'zephyrproject-rtos'
2424

2525
steps:
26+
- name: Harden the runner (Audit all outbound calls)
27+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
28+
with:
29+
egress-policy: audit
30+
2631
- name: Checkout
2732
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2833

.github/workflows/clang.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
LLVM_TOOLCHAIN_PATH: /usr/lib/llvm-16
3333
BASE_REF: ${{ github.base_ref }}
3434
steps:
35+
- name: Harden the runner (Audit all outbound calls)
36+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
37+
with:
38+
egress-policy: audit
39+
3540
- name: Apply container owner mismatch workaround
3641
run: |
3742
# FIXME: The owner UID of the GITHUB_WORKSPACE directory may not
@@ -135,6 +140,11 @@ jobs:
135140
checks: write # to create GitHub annotations
136141
if: (success() || failure())
137142
steps:
143+
- name: Harden the runner (Audit all outbound calls)
144+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
145+
with:
146+
egress-policy: audit
147+
138148
- name: Checkout
139149
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
140150
with:

.github/workflows/codechecker.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
permissions:
3131
security-events: write
3232
steps:
33+
- name: Harden the runner (Audit all outbound calls)
34+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
35+
with:
36+
egress-policy: audit
37+
3338
- name: Apply container owner mismatch workaround
3439
run: |
3540
# FIXME: The owner UID of the GITHUB_WORKSPACE directory may not

.github/workflows/codecov.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ jobs:
3939
# `--specs` is ignored because ccache is unable to resovle the toolchain specs file path.
4040
CCACHE_IGNOREOPTIONS: '-specs=* --specs=*'
4141
steps:
42+
- name: Harden the runner (Audit all outbound calls)
43+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
44+
with:
45+
egress-policy: audit
46+
4247
- name: Apply container owner mismatch workaround
4348
run: |
4449
# FIXME: The owner UID of the GITHUB_WORKSPACE directory may not
@@ -138,6 +143,11 @@ jobs:
138143
if: success() || failure()
139144

140145
steps:
146+
- name: Harden the runner (Audit all outbound calls)
147+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
148+
with:
149+
egress-policy: audit
150+
141151
- name: checkout
142152
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
143153
with:

0 commit comments

Comments
 (0)