ci: flip harden-runner to egress block mode with per-job allowlists (SLSA phase 5) - #41
Open
serval-frenchie wants to merge 2 commits into
Open
Conversation
…SLSA phase 5) Every job moves from egress-policy: audit to block with an explicit allowed-endpoints list: the job's observed egress baseline (StepSecurity insights across the runs since phase 4 landed) plus GitHub/Go-infra cache-miss paths the same tools use. The release job has not yet run under harden-runner; its list adds the publish endpoints (release upload, Sigstore keyless signing) to the shared build baseline, and its attest step runs before gh release create, so a blocked endpoint fails the run before anything is published. This PR's own CI validates the block lists live for every pull_request-triggered job. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
serval-frenchie
marked this pull request as ready for review
July 5, 2026 07:48
Contributor
|
I will adjust these to block in the future, just want to make sure that we've captured all the endpoints over a couple of releases |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Phase 5, mirroring threatcl's block-mode flip: every job's harden-runner moves from
egress-policy: audit(added in #35) toblockwith an explicit per-joballowed-endpointslist. Off-list outbound connections now fail at connect time, so a compromised action or dependency can't exfiltrate.Where the lists come from
uploads.github.com,fulcio/rekor/tuf-repo-cdn.sigstore.devfor the provenance attestation, syft'sget.anchore.io/toolbox-data.anchore.io). Note the attest step runs beforegh release createhere, so a blocked endpoint fails the run before anything is published — the safe ordering.Validation
Companion PR on the CLI repo: threatcl/threatcl (same branch name).
🤖 Generated with Claude Code