Skip to content

Commit 7da6fc8

Browse files
committed
actions: apply recommendations from harden runner
Signed-off-by: flakey5 <73616808+flakey5@users.noreply.github.com>
1 parent a2ccfe7 commit 7da6fc8

File tree

5 files changed

+34
-6
lines changed

5 files changed

+34
-6
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ jobs:
4141
steps:
4242
- uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
4343
with:
44-
egress-policy: audit
44+
egress-policy: block
45+
allowed-endpoints: >
46+
github.com:443
47+
*.github.com:443
4548
4649
- name: Checkout repository
4750
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ jobs:
1515
steps:
1616
- uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
1717
with:
18-
egress-policy: audit
18+
egress-policy: block
19+
allowed-endpoints: >
20+
api.cloudflare.com:443
21+
api.github.com:443
22+
github.com:443
23+
hooks.slack.com:443
24+
registry.npmjs.org:443
1925
2026
- name: Git Checkout
2127
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

.github/workflows/format.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ jobs:
2020
steps:
2121
- uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
2222
with:
23-
egress-policy: audit
23+
egress-policy: block
24+
allowed-endpoints: >
25+
api.github.com:443
26+
github.com:443
27+
registry.npmjs.org:443
2428
2529
- name: Git Checkout
2630
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

.github/workflows/test.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ jobs:
2020
steps:
2121
- uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
2222
with:
23-
egress-policy: audit
23+
egress-policy: block
24+
allowed-endpoints: >
25+
api.github.com:443
26+
github.com:443
27+
registry.npmjs.org:443
2428
2529
- name: Git Checkout
2630
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
@@ -45,7 +49,12 @@ jobs:
4549
steps:
4650
- uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
4751
with:
48-
egress-policy: audit
52+
egress-policy: block
53+
allowed-endpoints: >
54+
api.github.com:443
55+
github.com:443
56+
registry.npmjs.org:443
57+
*.cloudflare.com:443
4958
5059
- name: Git Checkout
5160
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

.github/workflows/update-links.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ jobs:
1717
steps:
1818
- uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
1919
with:
20-
egress-policy: audit
20+
egress-policy: block
21+
allowed-endpoints: >
22+
api.github.com:443
23+
dist-prod.07be8d2fbc940503ca1be344714cb0d1.r2.cloudflarestorage.com:443
24+
github.com:443
25+
hooks.slack.com:443
26+
registry.npmjs.org:443
2127
2228
- name: Git Checkout
2329
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

0 commit comments

Comments
 (0)