ci: pin Scorecards checkout action by commit - #1966
Merged
Merged
Conversation
Signed-off-by: Robert McConnell <robert@mcc0nnell.org>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The change is reviewed, narrowly scoped, and has no unresolved issues.
Review effort: Lite
Findings: None
What changed in this PR
Pins the Scorecards workflow checkout action to the immutable v7.0.1 commit.
Changes:
- Replaces
actions/checkout@v7with commit3d3c42e5.... - Updates the version comment to
7.0.1.
| File | Description |
|---|---|
.github/workflows/scorecards-analysis.yaml |
Pins the checkout action by commit. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
The Scorecards workflow already pins the scorecard, artifact upload, and SARIF upload actions to immutable commits, but
actions/checkoutstill follows the mutablev7tag.That job has
security-events: writeandid-token: write, so pin checkout to the exact commit currently resolved byv7(3d3c42e5aac5ba805825da76410c181273ba90b1, v7.0.1) as well.No workflow behavior changes.
Validation:
actionlint .github/workflows/scorecards-analysis.yamlgit diff --check