Pin GitHub Actions to commits instead of tags#2243
Merged
priteau merged 14 commits intostackhpc/2025.1from Apr 2, 2026
Merged
Conversation
Contributor
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
seunghun1ee
reviewed
Mar 31, 2026
Member
seunghun1ee
left a comment
There was a problem hiding this comment.
Can you comment which version or tag each SHA is pointing at? (If that's available)
Pins actions/checkout to v6.0.2 commit hash instead of the tag.
…a40e8e0b5a5461e7c Updates actions/download-artifact from v7 to v8.0.1 and pins to a specific commit hash instead of the tag.
Pins actions/setup-python to v6.2.0 commit hash instead of the tag.
…fdaad77386f024f Updates actions/upload-artifact from v6 to v7.0.0 and pins to a specific commit hash instead of the tag.
…6d141179aa583294 Updates docker/build-push-action from v6 to v7.0.0 and pins to a specific commit hash instead of the tag.
…00b2ab88fb2 Updates docker/login-action from v3 to v4.0.0 and pins to a specific commit hash instead of the tag.
…a6bfe6a94e05cf Updates docker/metadata-action from v5 to v6.0.0 and pins to a specific commit hash instead of the tag.
…baf45bbb4f8b9deedd Updates docker/setup-buildx-action from v3 to v4.0.0 and pins to a specific commit hash instead of the tag.
…c25e6d187d Updates dorny/paths-filter from v3 to v4.0.1 and pins to a specific commit hash instead of the tag.
…8fb23f2ac83bb6c85 Updates hashicorp/setup-terraform from v3 to v4.0.0 and pins to a specific commit hash instead of the tag.
…9d195d2ece0 Pins peter-evans/create-pull-request to v8.1.0 commit hash instead of the tag.
…162a307590698245be95 Updates slackapi/slack-github-action from v1.26.0 to v3.0.1 and pins to a specific commit hash instead of the tag.
Actions have been compromised a lot recently. All this action does is install packages, so it's not worth the risk. Just install the packages directly in the workflow.
Member
Author
Done, also got Gemini to script the process so it's faster and less susceptible to dumb Alex errors. New script pulls the head commit from the latest release, so it's a bit smarter as well. Gist is here I've also tweaked the the slack action invocation because it was jumping a few versions, so needed a fix |
priteau
approved these changes
Apr 2, 2026
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.
Updates all actions that were previously pinned to a tag, to be pinned to the latest commit hash
This is to mitigate the risk of supply chain attacks that target upstream GitHub actions, and avoid node 20 deprecation warnings at the same time.