Skip to content

Commit c873d82

Browse files
committed
ci: expand harden-runner allowed-endpoints for v2.19.0 enforcement
harden-runner v2.19.0 enforces egress policy on Blacksmith runners, unmasking domains that v2.18.0 silently allowed through. - Build & Test: add us-west-2.ec2.archive.ubuntu.com and security.ubuntu.com for apt-get install - Docker Build: add Cloudflare R2 buckets Docker Hub now serves image layers from - NilAway: add go.dev and release-assets.githubusercontent.com for setup-go version resolution
1 parent d5bf06f commit c873d82

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ jobs:
8787
ports.ubuntu.com:80
8888
proxy.golang.org:443
8989
release-assets.githubusercontent.com:443
90+
security.ubuntu.com:80
9091
storage.googleapis.com:443
92+
us-west-2.ec2.archive.ubuntu.com:80
9193
9294
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
9395
with:
@@ -394,8 +396,10 @@ jobs:
394396
egress-policy: block
395397
disable-telemetry: true
396398
allowed-endpoints: >
399+
1ede90a8395416f286ba9f692dc6bacf.r2.cloudflarestorage.com:443
397400
api.github.com:443
398401
auth.docker.io:443
402+
docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com:443
399403
github.com:443
400404
gcr.io:443
401405
production.cloudflare.docker.com:443

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ jobs:
189189
allowed-endpoints: >
190190
api.github.com:443
191191
github.com:443
192+
go.dev:443
192193
proxy.golang.org:443
194+
release-assets.githubusercontent.com:443
193195
storage.googleapis.com:443
194196
sum.golang.org:443
195197

0 commit comments

Comments
 (0)