Skip to content

Commit b3345fb

Browse files
authored
actions: apply recommendations from harden runner (#400)
Signed-off-by: flakey5 <[email protected]>
1 parent c64b952 commit b3345fb

File tree

5 files changed

+35
-6
lines changed

5 files changed

+35
-6
lines changed

.github/workflows/codeql.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ jobs:
4141
steps:
4242
- uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
4343
with:
44-
egress-policy: audit
44+
egress-policy: block
45+
allowed-endpoints: >
46+
github.com:443
47+
*.github.com:443
48+
objects.githubusercontent.com:443
4549
4650
- name: Checkout repository
4751
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@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
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@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
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@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
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@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
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@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
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)