Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 Updates harden-runner egress policy to block from audit #4163

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bmuenzenmeyer
Copy link

@bmuenzenmeyer bmuenzenmeyer commented Jun 10, 2024

What kind of change does this PR introduce?

Flipping the egress policy for harden-runner.
Also updates harden-runner sha comments to accurately match the sha. I know dependabot does this automatically, so unsure how this is out of sync.

(Is it a bug fix, feature, docs update, something else?)

What is the current behavior?

Policy is set to audit, which seems to be stable now per runs like https://app.stepsecurity.io/github/ossf/scorecard/actions/runs/9452793546?jobid=26036752635&tab=network-events

⚠️ someone with proper knowledge and access here should confirm no allow-listing is needed

What is the new behavior (if this is a feature change)?**

Changed policy to block.

This assumes that the current list is allow-listed. I am still learning harden-runner, but according to the video on the harden-runner README, this can now be flipped.

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

NONE

Special notes for your reviewer

I didn't open an issue first - forgive me. I had a spare moment doing my own scorecard/ harden-runner research and thought this would be useful.

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

NONE

@bmuenzenmeyer bmuenzenmeyer requested a review from a team as a code owner June 10, 2024 19:31
@bmuenzenmeyer bmuenzenmeyer requested review from naveensrinivasan and raghavkaul and removed request for a team June 10, 2024 19:31
TODO comment says to do this after a few runs, which has occurred.

Signed-off-by: Brian Muenzenmeyer <[email protected]>
@spencerschrock
Copy link
Contributor

⚠️ someone with proper knowledge and access here should confirm no allow-listing is needed
This assumes that the current list is allow-listed.

Allowlisting is needed. As none of our usages define a list currently.
https://github.com/step-security/harden-runner/blob/547a5cc003898d3f8fb1265b4a1f09b15be2f990/action.yml#L4-L11

I know dependabot does this automatically, so unsure how this is out of sync.

It didnt always update it, so it fell out of date. And then once it gained the ability to update it, it only updated it if it was correct, which by that point they were out of date so it didn't update the comment.

Copy link

This pull request has been marked stale because it has been open for 10 days with no activity

@github-actions github-actions bot added the Stale label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

2 participants