Skip to content

Commit 162d80c

Browse files
authored
chore: add harden runner in audit mode to critical workflows (#1842)
1 parent e8f762d commit 162d80c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/npm_release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
npm_version: ${{ steps.npm_version_output.outputs.NPM_VERSION }}
2222
npm_tag: ${{ steps.npm_version_output.outputs.NPM_TAG }}
2323
steps:
24+
- name: Harden the runner (Audit all outbound calls)
25+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
26+
with:
27+
egress-policy: audit
28+
2429
- uses: actions/checkout@v3
2530
with:
2631
fetch-depth: 0
@@ -88,6 +93,11 @@ jobs:
8893
runs-on: macos-13
8994
needs: build
9095
steps:
96+
- name: Harden the runner (Audit all outbound calls)
97+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
98+
with:
99+
egress-policy: audit
100+
91101
- uses: actions/checkout@v3
92102
with:
93103
submodules: true
@@ -142,6 +152,11 @@ jobs:
142152
NPM_VERSION: ${{needs.build.outputs.npm_version}}
143153
NPM_TAG: ${{needs.build.outputs.npm_tag}}
144154
steps:
155+
- name: Harden the runner (Audit all outbound calls)
156+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
157+
with:
158+
egress-policy: audit
159+
145160
- uses: actions/setup-node@v3
146161
with:
147162
node-version: 22
@@ -168,6 +183,11 @@ jobs:
168183
env:
169184
NPM_VERSION: ${{needs.build.outputs.npm_version}}
170185
steps:
186+
- name: Harden the runner (Audit all outbound calls)
187+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
188+
with:
189+
egress-policy: audit
190+
171191
- uses: actions/checkout@v3
172192
with:
173193
fetch-depth: 0

0 commit comments

Comments
 (0)