ci: update step-security/harden-runner and update allowed endpoints #5953
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.
This PR does two things:
Updates
step-security/harden-runner
from 2.5.0 to 2.5.1 in the GitHub Actions workflows.GitHub Actions recently started making outbound calls to a few endpoints not in the default allowed list. This causes the build to get stuck when using a
block
policy withharden-runner
. This update to harden-runner (version v2.5.1), adds these new endpoints to the default allowed list.I noticed that some of the workflows in this repository are getting stuck, so creating a PR to bump up the version to the latest.
Release notes for the latest version are here:
https://github.com/step-security/harden-runner/releases/tag/v2.5.1
I also noticed while testing the workflows that some endpoints that should be allowed were not in the allowed list, and were getting blocked, so added them to the allowed list.