From 5f0dd5eba09950a1c689dcdf7e264a8684837f55 Mon Sep 17 00:00:00 2001 From: Nikolai Emil Damm Date: Fri, 13 Nov 2026 06:56:30 +0100 Subject: [PATCH 1/2] ci(release): refuse unlisted outbound hosts in the release jobs Opt the release workflow into create-release's block-egress input (devantler-tech/.github#912), so a compromised tool inside the release job cannot send the release token to any host outside the measured allow-list. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 75e3a6a..824757e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,5 +14,9 @@ permissions: jobs: release: uses: devantler-tech/.github/.github/workflows/create-release.yaml@f33622708f9f25a32acb46cc419007e18a3223b3 # v21.3.1 + with: + # Refuse every outbound host except the release jobs' measured allow-list + # (devantler-tech/.github#912). Remove this line to return to audit-only. + block-egress: true secrets: APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} From 0a67a37aaa3c7c5bdacfd5a5941f6175e88213dd Mon Sep 17 00:00:00 2001 From: Nikolai Emil Damm Date: Fri, 13 Nov 2026 07:02:46 +0100 Subject: [PATCH 2/2] ci(release): keep block-egress to the template repository Generated projects own their .releaserc, and an asset upload there needs a host outside the measured allow-list, so a template sync must not switch them to block mode. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 824757e..f7d5cc3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,7 +16,9 @@ jobs: uses: devantler-tech/.github/.github/workflows/create-release.yaml@f33622708f9f25a32acb46cc419007e18a3223b3 # v21.3.1 with: # Refuse every outbound host except the release jobs' measured allow-list - # (devantler-tech/.github#912). Remove this line to return to audit-only. - block-egress: true + # (devantler-tech/.github#912) — in this template repository only. Generated projects + # own their release configuration (an asset upload needs another host), so they stay in + # audit mode until they opt in themselves. + block-egress: ${{ github.repository == 'devantler-tech/go-template' }} secrets: APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}