Skip to content

Commit 864e06d

Browse files
author
Kenneth Rosario
authored
chore: apply recommended egress policies (#167)
1 parent 6a5a600 commit 864e06d

File tree

6 files changed

+46
-6
lines changed

6 files changed

+46
-6
lines changed

.github/workflows/codeql.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ jobs:
4343
- name: Harden Runner
4444
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
4545
with:
46-
egress-policy: audit
46+
disable-sudo: true
47+
egress-policy: block
48+
allowed-endpoints: >
49+
api.github.com:443
50+
github.com:443
51+
uploads.github.com:443
4752
4853
- name: Checkout repository
4954
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

.github/workflows/conformance.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@ jobs:
2121
- name: Harden Runner
2222
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
2323
with:
24-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
24+
disable-sudo: true
25+
egress-policy: block
26+
allowed-endpoints: >
27+
api.github.com:443
28+
github.com:443
29+
index.rubygems.org:443
30+
objects.githubusercontent.com:443
31+
proxy.golang.org:443
32+
rubygems.org:443
33+
storage.googleapis.com:443
2534
2635
- name: Checkout code
2736
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

.github/workflows/dependency-review.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ jobs:
1919
- name: Harden Runner
2020
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
2121
with:
22-
egress-policy: audit
22+
disable-sudo: true
23+
egress-policy: block
24+
allowed-endpoints: >
25+
api.github.com:443
26+
github.com:443
2327
2428
- name: 'Checkout Repository'
2529
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

.github/workflows/lint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ jobs:
1818
- name: Harden Runner
1919
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
2020
with:
21-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
21+
disable-sudo: true
22+
egress-policy: block
23+
allowed-endpoints: >
24+
github.com:443
25+
index.rubygems.org:443
26+
objects.githubusercontent.com:443
2227
2328
- name: Checkout repo
2429
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

.github/workflows/scorecard.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,18 @@ jobs:
2727
- name: Harden Runner
2828
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
2929
with:
30-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
30+
disable-sudo: true
31+
egress-policy: block
32+
allowed-endpoints: >
33+
api.github.com:443
34+
api.osv.dev:443
35+
api.securityscorecards.dev:443
36+
bestpractices.coreinfrastructure.org:443
37+
fulcio.sigstore.dev:443
38+
github.com:443
39+
oss-fuzz-build-logs.storage.googleapis.com:443
40+
sigstore-tuf-root.storage.googleapis.com:443
41+
rekor.sigstore.dev:443
3142
3243
- name: "Checkout code"
3344
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

.github/workflows/unit.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ jobs:
4040
- name: Harden Runner
4141
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
4242
with:
43-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
43+
disable-sudo: true
44+
egress-policy: block
45+
allowed-endpoints: >
46+
github.com:443
47+
index.rubygems.org:443
48+
objects.githubusercontent.com:443
49+
rubygems.org:443
4450
4551
- name: Checkout repo
4652
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

0 commit comments

Comments
 (0)