workflows: Pin third-party GitHub Actions to commit hashes - #123
Merged
Merged
Conversation
- A Git tag is mutable, so an action referenced by one can be replaced with different code without the reference changing, which `super-linter/super-linter` was already pinned against. - The version each hash corresponds to is kept in a trailing comment, which is the format Dependabot reads and rewrites when it bumps the action. - The reusable workflows of `cordada/github-actions-utils` are left referenced by branch, because they are internal to the organization. Co-Authored-By: Claude Opus 5 <noreply@anthropic.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.



Every third-party action used by the workflows of this repository was referenced by a Git tag, which is mutable: the owner of an action can move a tag to different code, and the reference in the workflow does not change.
super-linter/super-linterwas already pinned to a commit hash; the actions ofactions/*were not, and now are.For the Reviewer
gh api repos/<owner>/<repo>/git/ref/tags/<tag>. All three tags are lightweight and point straight at a commit, so there is no annotated tag object to dereference, and each hash can be checked against the corresponding tag on GitHub.# vX.Y.Zcomment, which is the shapesuper-linter/super-linteralready had and the one Dependabot reads and rewrites when it bumps an action, so.github/dependabot.ymlneeds no change.cordada/github-actions-utilskeep their@masterreference, because they are internal to the organization and this repository is the one that publishes them.