Repository navigation
ci: pin actions to commit SHAs - #2
Open
YuvalR-adaptive6 wants to merge 1 commit into
Open
YuvalR-adaptive6 wants to merge 1 commit into
YuvalR-adaptive6 wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change pinning both preventive action references to full commit SHAs.
No open issues 🎉
What changed in this PR
Pins both action references in the preventive composite action to full commit SHAs, supporting the organization’s upcoming SHA-pinning requirement and preventing mutable references from changing CI behavior.
Changes:
- Pins
actions/checkout, retainingv2.8.0as a trailing comment. - Pins the internal results parser to a fixed commit; future parser rebuilds require updating this pin.
| File | Description |
|---|---|
preventive/action.yml |
Replaces two mutable action references with full 40-character commit SHAs. |
Review effort: Balanced
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
Pins 2 third-party and internal action / reusable-workflow references in GitHub Actions workflows and composite actions to full 40-character commit SHAs, keeping the version as a trailing comment (for example actions/checkout@ # v4.4.0).
Versions are not changed: each tag or branch is resolved to the commit it points to today (annotated tags dereferenced). The comment shows the most specific tag on that commit, so a floating v4 shows up as v4.4.0. Generated with pinact, branch refs resolved via the GitHub API, checked with actionlint (no new findings).
Why
The org is about to enable "Require actions to be pinned to a full-length commit SHA". Once on, any workflow still using a tag or branch ref fails to start. Tags and branches are mutable, so a compromised or hijacked upstream tag would otherwise run new code in our CI with our secrets; a commit SHA cannot be moved.
Notes
Asana: https://app.asana.com/1/1206371752592560/project/1206372017962686/task/1220763056500215
🤖 Generated with Claude Code