ci: switch Harden-Runner from audit to block mode in all workflows#2340
Open
itsfarhan wants to merge 7 commits into
Open
ci: switch Harden-Runner from audit to block mode in all workflows#2340itsfarhan wants to merge 7 commits into
itsfarhan wants to merge 7 commits into
Conversation
Signed-off-by: itsfarhan <itsmefarhan09@gmail.com>
✅ Deploy Preview for k8gb-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
ytsarev
reviewed
Apr 28, 2026
Member
There was a problem hiding this comment.
Inline review comments for the block-mode endpoint allowlists. The common reference behind these suggestions is the Harden Runner block-mode documentation, which explains that outbound traffic is restricted to allowed-endpoints and shows endpoint entries in host:port form, for example api.github.com:443: https://docs.stepsecurity.io/harden-runner/workflow-runs#filter-outbound-network-traffic-to-allowed-endpoints
ytsarev
requested changes
Apr 28, 2026
Signed-off-by: itsfarhan <itsmefarhan09@gmail.com>
Signed-off-by: itsfarhan <itsmefarhan09@gmail.com>
Signed-off-by: itsfarhan <itsmefarhan09@gmail.com>
Signed-off-by: itsfarhan <itsmefarhan09@gmail.com>
Signed-off-by: itsfarhan <itsmefarhan09@gmail.com>
Signed-off-by: itsfarhan <itsmefarhan09@gmail.com>
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.
Switch all GitHub Actions workflows from
egress-policy: audittoegress-policy: blockwith explicit allowlists.Updated 16 workflows to use
egress-policy: block:each workflow now has explicit allowed endpoints list for required outbound connections.
Test:
Fixes: #2302
Issue Ref: #2294
HOW TO RUN CI
---By default, all the checks will be run automatically. Furthermore, when changing website-related stuff, the preview will be generated by the netlify bot.
Heavy tests
Add the
heavy-testslabel on this PR if you want full-blown tests that include more than 2-cluster scenarios.Debug tests
If the test suite is failing for you, you may want to try triggering
Re-run all jobs(top right) with debug logging enabled. It will also make the print debug action more verbose.