Skip to content

Commit ae704f7

Browse files
committed
Update harden-runner: egress-policy to block and add id-token permission
1 parent 6ea5286 commit ae704f7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ jobs:
3535
if: needs.release-please.outputs.release_created == 'true'
3636
needs: release-please
3737
runs-on: ubuntu-latest
38+
permissions:
39+
id-token: write
40+
3841
steps:
39-
- name: Harden the runner (Audit all outbound calls)
42+
- name: Harden the runner
4043
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
4144
with:
42-
egress-policy: audit
45+
egress-policy: block
46+
policy: global-allowed-endpoints-policy
4347

4448
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
4549

0 commit comments

Comments
 (0)