Skip to content

Commit ed3ba1b

Browse files
committed
ci: update egress policies
Signed-off-by: flakey5 <73616808+flakey5@users.noreply.github.com>
1 parent 6bc834d commit ed3ba1b

9 files changed

Lines changed: 63 additions & 12 deletions

File tree

.github/workflows/auto-merge.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
- name: Harden Runner
1919
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
2020
with:
21-
egress-policy: audit
21+
egress-policy: block
22+
allowed-endpoints: >
23+
api.github.com:443
2224
2325
- uses: nodejs/web-team/actions/auto-merge-prs@b087df186d25f8792fb85cc7794f68718726b8ee
2426
with:

.github/workflows/ci.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ jobs:
2121
- name: Harden Runner
2222
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
2323
with:
24-
egress-policy: audit
24+
egress-policy: block
25+
allowed-endpoints: >
26+
github.com:443
27+
registry.npmjs.org:443
2528
2629
- name: Checkout code
2730
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -49,7 +52,16 @@ jobs:
4952
- name: Harden Runner
5053
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
5154
with:
52-
egress-policy: audit
55+
egress-policy: block
56+
allowed-endpoints: >
57+
cli.codecov.io:443
58+
github.com:443
59+
ingest.codecov.io:443
60+
keybase.io:443
61+
o26192.ingest.us.sentry.io:443
62+
raw.githubusercontent.com:443
63+
registry.npmjs.org:443
64+
storage.googleapis.com:443
5365
5466
- name: Checkout code
5567
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -87,7 +99,20 @@ jobs:
8799
- name: Harden Runner
88100
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
89101
with:
90-
egress-policy: audit
102+
egress-policy: block
103+
allowed-endpoints: >
104+
*.archive.ubuntu.com:80
105+
*.microsoft.com:443
106+
api.github.com:443
107+
cdn.playwright.dev:443
108+
dl.google.com:443
109+
esm.ubuntu.com:443
110+
fonts.googleapis.com:443
111+
fonts.gstatic.com:443
112+
github.com:443
113+
raw.githubusercontent.com:443
114+
registry.npmjs.org:443
115+
storage.googleapis.com:443
91116
92117
- name: Checkout code
93118
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/codeql.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ jobs:
4242
- name: Harden Runner
4343
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
4444
with:
45-
egress-policy: audit
45+
egress-policy: block
46+
allowed-endpoints: >
47+
github.com:443
48+
*.github.com:443
49+
objects.githubusercontent.com:443
50+
release-assets.githubusercontent.com:443
4651
4752
- name: Checkout repository
4853
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/codespell.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ jobs:
1111
- name: Harden Runner
1212
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
1313
with:
14-
egress-policy: audit
14+
egress-policy: block
15+
allowed-endpoints: >
16+
github.com:443
1517
1618
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1719
- uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2

.github/workflows/dependency-review.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
name: Review Dependencies
1010

1111
on:
12-
pull_request_target:
12+
pull_request:
1313
branches:
1414
- main
1515

@@ -23,7 +23,10 @@ jobs:
2323
- name: Harden Runner
2424
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
2525
with:
26-
egress-policy: audit
26+
egress-policy: block
27+
allowed-endpoints: >
28+
github.com:443
29+
api.github.com:443
2730
2831
- name: Git Checkout
2932
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/leave-comment.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
- name: Harden Runner
1919
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
2020
with:
21-
egress-policy: audit
21+
egress-policy: block
22+
allowed-endpoints: >
23+
api.github.com:443
2224
2325
- name: Download all comparison artifacts
2426
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ jobs:
2828
- name: Harden Runner
2929
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
3030
with:
31-
egress-policy: audit
31+
egress-policy: block
32+
allowed-endpoints: >
33+
github.com:443
34+
api.github.com:443
3235
3336
- name: Verify commit authenticity
3437
env:

.github/workflows/scorecard.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ jobs:
3434
- name: Harden Runner
3535
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
3636
with:
37-
egress-policy: audit
37+
egress-policy: block
38+
allowed-endpoints: >
39+
api.github.com:443
40+
api.scorecard.dev:443
41+
rekor.sigstore.dev:443
42+
tuf-repo-cdn.sigstore.dev
43+
fulcio.sigstore.dev
3844
3945
- name: Git Checkout
4046
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/update-type-map.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ jobs:
1717
- name: Harden Runner
1818
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
1919
with:
20-
egress-policy: audit
20+
egress-policy: block
21+
allowed-endpoints: >
22+
github.com:443
23+
api.github.com:443
2124
2225
- name: Git Checkout
2326
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

0 commit comments

Comments
 (0)