Skip to content

Commit 7e1d12c

Browse files
committed
feat: add harden runner in audit mode to critical workflows
Similar to NativeScript/android#1842
1 parent fb56643 commit 7e1d12c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/npm_release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
npm_version: ${{ steps.npm_version_output.outputs.NPM_VERSION }}
1818
npm_tag: ${{ steps.npm_version_output.outputs.NPM_TAG }}
1919
steps:
20+
- name: Harden the runner (Audit all outbound calls)
21+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
22+
with:
23+
egress-policy: audit
2024
- uses: maxim-lobanov/setup-xcode@v1
2125
with:
2226
xcode-version: ${{env.XCODE_VERSION}}
@@ -75,6 +79,10 @@ jobs:
7579
runs-on: macos-14
7680
needs: build
7781
steps:
82+
- name: Harden the runner (Audit all outbound calls)
83+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
84+
with:
85+
egress-policy: audit
7886
- uses: maxim-lobanov/setup-xcode@v1
7987
with:
8088
xcode-version: ${{env.XCODE_VERSION}}
@@ -138,6 +146,10 @@ jobs:
138146
NPM_VERSION: ${{needs.build.outputs.npm_version}}
139147
NPM_TAG: ${{needs.build.outputs.npm_tag}}
140148
steps:
149+
- name: Harden the runner (Audit all outbound calls)
150+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
151+
with:
152+
egress-policy: audit
141153
- uses: actions/setup-node@v3
142154
with:
143155
node-version: 20
@@ -164,6 +176,10 @@ jobs:
164176
env:
165177
NPM_VERSION: ${{needs.build.outputs.npm_version}}
166178
steps:
179+
- name: Harden the runner (Audit all outbound calls)
180+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
181+
with:
182+
egress-policy: audit
167183
- uses: actions/checkout@v3
168184
with:
169185
fetch-depth: 0

0 commit comments

Comments
 (0)