Skip to content

Commit 28ca9cd

Browse files
committed
harden-runner
1 parent b3e2560 commit 28ca9cd

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/build_all.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ jobs:
3434
attestations: write
3535

3636
steps:
37+
- name: Harden the runner (Audit all outbound calls)
38+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
39+
with:
40+
egress-policy: audit
41+
3742
- name: Check out the repository
3843
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3944
with:
@@ -143,6 +148,11 @@ jobs:
143148
id-token: write # needed for signing the images with GitHub OIDC Token
144149
attestations: write
145150
steps:
151+
- name: Harden the runner (Audit all outbound calls)
152+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
153+
with:
154+
egress-policy: audit
155+
146156
- name: Login ghcr.io
147157
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
148158
with:
@@ -220,6 +230,11 @@ jobs:
220230
contents: read
221231
packages: write
222232
steps:
233+
- name: Harden the runner (Audit all outbound calls)
234+
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
235+
with:
236+
egress-policy: audit
237+
223238
- name: Get PR number
224239
id: pr
225240
run: echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)