Add StepSecurity Harden Runner to workflows#103
Conversation
Adds step-security/harden-runner@8d3c67d (v2.19.0) as the first step in every job across all workflow files, using egress-policy: audit to monitor outbound network traffic. Workflows updated: build.yml, pre-commit.yml, pr-cleanup.yml, slack_notify.yml, unified-dogfooding.yml, PullRequestClosed.yml, PullRequestCreated.yml, RequestReview.yml, SubmitReview.yml release.yml is excluded as its job uses a reusable workflow call and does not support injecting steps.
SummaryThis PR adds network security monitoring to GitHub Actions workflows by injecting the StepSecurity Harden Runner action as the first step in every job across 9 workflow files. The action is configured with What reviewers should knowWhat changed:
Key decisions:
Out of scope:
To review: Check that all job steps across the workflow files have the harden-runner action properly positioned as the first step.
|
There was a problem hiding this comment.
Pull request overview
This PR strengthens CI supply-chain security posture by adding StepSecurity Harden Runner to each workflow job as the first step, configured in non-blocking egress-policy: audit mode to observe outbound network activity.
Changes:
- Added
step-security/harden-runner@8d3c67d...(v2.19.0) as the first step of each job in the updated workflows. - Configured Harden Runner with
egress-policy: auditconsistently across all updated jobs.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/unified-dogfooding.yml | Adds Harden Runner audit step to the scheduled dogfooding build job. |
| .github/workflows/slack_notify.yml | Adds Harden Runner audit step before Slack notification action runs. |
| .github/workflows/pre-commit.yml | Adds Harden Runner audit step to the pre-commit job. |
| .github/workflows/pr-cleanup.yml | Adds Harden Runner audit step to PR cleanup job. |
| .github/workflows/build.yml | Adds Harden Runner audit step to both build and promote jobs. |
| .github/workflows/SubmitReview.yml | Adds Harden Runner audit step before vault + backlog automation. |
| .github/workflows/RequestReview.yml | Adds Harden Runner audit step before vault + backlog automation. |
| .github/workflows/PullRequestCreated.yml | Adds Harden Runner audit step before vault + backlog automation. |
| .github/workflows/PullRequestClosed.yml | Adds Harden Runner audit step before vault + backlog automation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
LGTM! ✅
Clean, uniform implementation with no issues found. All 10 jobs across 9 workflow files are covered consistently, the action is pinned to the same commit hash in every file, and release.yml is correctly excluded due to its reusable-workflow job structure.
|
Closing fork PR — recreating from an internal branch to resolve fork PR CI limitations. |
Adds
step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40(v2.19.0) as the first step in every job across all workflow files, usingegress-policy: auditto monitor outbound network traffic without blocking.Workflows updated:
build.yml,pre-commit.yml,pr-cleanup.yml,slack_notify.yml,unified-dogfooding.yml,PullRequestClosed.yml,PullRequestCreated.yml,RequestReview.yml,SubmitReview.yml