Skip to content

Commit 4f82a71

Browse files
committed
Block outbound calls from ci runners to unallowed endpoints
1 parent a03adea commit 4f82a71

10 files changed

Lines changed: 41 additions & 27 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ jobs:
2222
security-events: write
2323

2424
steps:
25-
- name: Harden the runner (Audit all outbound calls)
25+
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
2626
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
2727
with:
28-
egress-policy: audit
28+
egress-policy: block
29+
allowed-endpoints: >+
2930
3031
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3132
with:
@@ -207,10 +208,11 @@ jobs:
207208
runs-on: ubuntu-latest
208209

209210
steps:
210-
- name: Harden the runner (Audit all outbound calls)
211+
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
211212
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
212213
with:
213-
egress-policy: audit
214+
egress-policy: block
215+
allowed-endpoints: >+
214216
215217
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
216218
with:

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ jobs:
3434
runs-on: ubuntu-latest
3535

3636
steps:
37-
- name: Harden the runner (Audit all outbound calls)
37+
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
3838
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
3939
with:
40-
egress-policy: audit
40+
egress-policy: block
41+
allowed-endpoints: >+
4142
4243
- name: Checkout repository
4344
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/dependency-review.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ jobs:
1616
dependency-review:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: Harden the runner (Audit all outbound calls)
19+
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
2020
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
2121
with:
22-
egress-policy: audit
22+
egress-policy: block
23+
allowed-endpoints: >+
2324
2425
- name: 'Checkout Repository'
2526
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/devcontainer.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- name: Harden the runner (Audit all outbound calls)
18+
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
1919
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
2020
with:
21-
egress-policy: audit
21+
egress-policy: block
22+
allowed-endpoints: >+
2223
2324
- name: Checkout repository
2425
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/docs.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ jobs:
1616
name: Documentation
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: Harden the runner (Audit all outbound calls)
19+
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
2020
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
2121
with:
22-
egress-policy: audit
22+
egress-policy: block
23+
allowed-endpoints: >+
2324
2425
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2526
with:
@@ -41,10 +42,11 @@ jobs:
4142
name: Landing page
4243
runs-on: ubuntu-latest
4344
steps:
44-
- name: Harden the runner (Audit all outbound calls)
45+
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
4546
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
4647
with:
47-
egress-policy: audit
48+
egress-policy: block
49+
allowed-endpoints: >+
4850
4951
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5052

@@ -75,10 +77,11 @@ jobs:
7577
permissions:
7678
contents: write
7779
steps:
78-
- name: Harden the runner (Audit all outbound calls)
80+
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
7981
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
8082
with:
81-
egress-policy: audit
83+
egress-policy: block
84+
allowed-endpoints: >+
8285
8386
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8487
with:

.github/workflows/python-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- name: Harden the runner (Audit all outbound calls)
23+
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
2424
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
2525
with:
26-
egress-policy: audit
26+
egress-policy: block
27+
allowed-endpoints: >+
2728
2829
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2930
with:

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
steps:
2424
- uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
2525
with:
26-
egress-policy: audit
26+
egress-policy: block
27+
allowed-endpoints: >+
2728
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2829
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2930
with:

.github/workflows/run.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jobs:
1515
security-events: write
1616

1717
steps:
18-
- name: Harden the runner (Audit all outbound calls)
18+
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
1919
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
2020
with:
21-
egress-policy: audit
21+
egress-policy: block
22+
allowed-endpoints: >+
2223
2324
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2425

@@ -73,10 +74,11 @@ jobs:
7374
security-events: write
7475

7576
steps:
76-
- name: Harden the runner (Audit all outbound calls)
77+
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
7778
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
7879
with:
79-
egress-policy: audit
80+
egress-policy: block
81+
allowed-endpoints: >+
8082
8183
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8284

.github/workflows/scorecard.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ jobs:
2626
id-token: write
2727

2828
steps:
29-
- name: Harden the runner (Audit all outbound calls)
29+
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
3030
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
3131
with:
32-
egress-policy: audit
32+
egress-policy: block
33+
allowed-endpoints: >+
3334
3435
- name: "Checkout code"
3536
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Harden the runner (Audit all outbound calls)
13+
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
1414
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
1515
with:
16-
egress-policy: audit
16+
egress-policy: block
17+
allowed-endpoints: >+
1718
1819
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1920

0 commit comments

Comments
 (0)