Skip to content

Commit 42f65a4

Browse files
authored
feat(harden-runner): move to inline block policies (#636)
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent 37beb05 commit 42f65a4

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/actionlint.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ jobs:
2222
- name: Harden Runner
2323
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
2424
with:
25-
egress-policy: audit
25+
egress-policy: block
26+
allowed-endpoints: >
27+
*.blob.core.windows.net:443
28+
*.githubapp.com:443
29+
api.github.com:443
30+
github.com:443
2631
2732
- name: Check out code
2833
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/digestabot.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,20 @@ jobs:
2121
- name: Harden Runner
2222
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
2323
with:
24-
egress-policy: audit
24+
egress-policy: block
25+
allowed-endpoints: >
26+
*.blob.core.windows.net:443
27+
*.githubapp.com:443
28+
api.github.com:443
29+
cgr.dev:443
30+
fulcio.sigstore.dev:443
31+
gcr.io:443
32+
ghcr.io:443
33+
github.com:443
34+
octo-sts.dev:443
35+
rekor.sigstore.dev:443
36+
release-assets.githubusercontent.com:443
37+
tuf-repo-cdn.sigstore.dev:443
2538
2639
- uses: octo-sts/action@f603d3be9d8dd9871a265776e625a27b00effe05 # v1.1.1
2740
id: octo-sts

0 commit comments

Comments
 (0)