fix(ci): pin GitHub Actions to commit SHAs#3392
Open
RecreationalMath wants to merge 2 commits into
Open
Conversation
Pin all third-party and reusable-workflow action references across the workflows and composite actions to immutable commit SHAs, keeping the release version as a trailing comment. No behaviour change, since each action is pinned to the commit its tag currently resolves to. greetings.yml is pinned separately in a previous PR.
justusschock
approved these changes
May 21, 2026
4 tasks
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3392 +/- ##
======================================
Coverage 37% 37%
======================================
Files 349 349
Lines 19901 19901
======================================
Hits 7264 7264
Misses 12637 12637 🚀 New features to boost your workflow:
|
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.
What does this PR do?
Pins all GitHub Actions and reusable-workflow references to immutable commit SHAs - as agreed with @justusschock in this comment on #3365.
This covers 41 references across 13 files (11 workflows + 2 composite actions). Each action is pinned to the commit its current tag resolves to, with the release version kept as a trailing comment (e.g.
actions/checkout@de0fac2… # v6.0.2), the format Dependabot recognises, so it keeps the SHAs current going forward. No behaviour change as every pin points at the same commit the tag already ran.A few notes for the reviewer:
greetings.ymlis intentionally excluded, it's pinned separately in fix(ci): align greetings workflow inputs with first-interaction@v3 #3365.uses:lines inpublish-pkg.ymlaren't pinned as they are inactive. Their tags were replaced with a@<COMMIT_SHA>placeholder plus a note that the repo now pins SHAs, recording the last tag in use.actions/labeler, which is already removed by ci: delete all pull_request_target workflows #3382)slash-cmd-dispatch,cmd-help,cmd-rebase) are currently non-functional.slash-cmd-dispatchfails on every run because thePAT_GHOSTsecret is empty, so/rebaseand/helpnever dispatch.Will fill this as a separate issueFiled at Slash-command workflows are non-functional (Slash Command Dispatch fails on every run) #3393.Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Oh yes, preventing a
tj-actions/changed-filesstyle supply chain attack sure is fun.