Skip to content

Commit 313c78a

Browse files
committed
allow harden-runner to connect to any github subdomains
#1410 (comment)
1 parent 9855890 commit 313c78a

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

.github/workflows/cicd.yml

+12-13
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
disable-file-monitoring: true
2828
egress-policy: block
2929
allowed-endpoints: >
30-
api.github.com:443
30+
*.github.com:443
31+
*.githubusercontent.com:443
3132
files.pythonhosted.org:443
3233
github.com:443
33-
objects.githubusercontent.com:443
3434
pypi.org:443
3535
3636
- name: Checkout source code
@@ -74,10 +74,10 @@ jobs:
7474
disable-file-monitoring: true
7575
egress-policy: block
7676
allowed-endpoints: >
77-
api.github.com:443
77+
*.github.com:443
78+
*.githubusercontent.com:443
7879
files.pythonhosted.org:443
7980
github.com:443
80-
objects.githubusercontent.com:443
8181
pypi.org:443
8282
8383
- name: Checkout source code
@@ -115,10 +115,10 @@ jobs:
115115
disable-file-monitoring: true
116116
egress-policy: block
117117
allowed-endpoints: >
118-
api.github.com:443
118+
*.github.com:443
119+
*.githubusercontent.com:443
119120
files.pythonhosted.org:443
120121
github.com:443
121-
objects.githubusercontent.com:443
122122
pypi.org:443
123123
124124
- name: Checkout source code
@@ -189,11 +189,11 @@ jobs:
189189
egress-policy: block
190190
allowed-endpoints: >
191191
*.codecov.io:443
192-
api.github.com:443
192+
*.github.com:443
193+
*.githubusercontent.com:443
193194
codecov.io:443
194195
files.pythonhosted.org:443
195196
github.com:443
196-
objects.githubusercontent.com:443
197197
pypi.org:443
198198
storage.googleapis.com:443
199199
@@ -308,7 +308,7 @@ jobs:
308308
disable-sudo: true
309309
egress-policy: block
310310
allowed-endpoints: >
311-
api.github.com:443
311+
*.github.com:443
312312
auth.docker.io:443
313313
dl-cdn.alpinelinux.org:443
314314
files.pythonhosted.org:443
@@ -350,7 +350,7 @@ jobs:
350350
disable-sudo: true
351351
egress-policy: block
352352
allowed-endpoints: >
353-
api.github.com:443
353+
*.github.com:443
354354
auth.docker.io:443
355355
github.com:443
356356
production.cloudflare.docker.com:443
@@ -421,16 +421,15 @@ jobs:
421421
disable-sudo: true
422422
egress-policy: block
423423
allowed-endpoints: >
424+
*.github.com:443
425+
*.githubusercontent.com:443
424426
655216687927.dkr.ecr.us-west-2.amazonaws.com:443
425427
api.ecr.us-west-2.amazonaws.com:443
426428
ecs.us-west-2.amazonaws.com:443
427429
email-smtp.us-west-2.amazonaws.com:465
428430
files.pythonhosted.org:443
429431
github.com:443
430432
pypi.org:443
431-
raw.githubusercontent.com:443
432-
api.github.com:443
433-
objects.githubusercontent.com:443
434433
435434
- name: Checkout source code
436435
uses: actions/checkout@v4

.github/workflows/deploy.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ jobs:
2020
disable-sudo: true
2121
egress-policy: block
2222
allowed-endpoints: >
23+
*.github.com:443
24+
*.githubusercontent.com:443
2325
ecs.us-west-2.amazonaws.com:443
2426
files.pythonhosted.org:443
2527
github.com:443
2628
pypi.org:443
27-
raw.githubusercontent.com:443
2829
sts.us-west-2.amazonaws.com:443
29-
api.github.com:443
30-
objects.githubusercontent.com:443
3130
3231
- name: Check user
3332
if: ${{ ! contains('["wsanchez", "mikeburg", "plapsley"]', github.actor) }}
@@ -85,11 +84,12 @@ jobs:
8584
disable-sudo: true
8685
egress-policy: block
8786
allowed-endpoints: >
87+
*.github.com:443
88+
*.githubusercontent.com:443
8889
ecs.us-west-2.amazonaws.com:443
8990
files.pythonhosted.org:443
9091
github.com:443
9192
pypi.org:443
92-
raw.githubusercontent.com:443
9393
sts.us-west-2.amazonaws.com:443
9494
9595
- name: Check user

0 commit comments

Comments
 (0)