fix(ci): pin codeql action to its commit SHA, not the tag object#63
Merged
Conversation
github/codeql-action v4.36.0 is an annotated tag, so f52b05f was the tag object SHA — not a commit. That can't be used as a uses: ref and the OpenSSF Scorecard webapp rejected it as an "imposter commit", failing the analysis step's publish. Pin to the dereferenced commit 7211b7c (still v4.36.0). Closes #62 Co-Authored-By: Claude Opus 4.7 <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.
The Scorecard workflow's
Run analysisstep fails on publish:github/codeql-action'sv4.36.0is an annotated tag, sof52b05fis the tag-object SHA — not a commit. It can't serve as auses:ref, and the OpenSSF Scorecard webapp verification rejects it as an imposter, failing the step (theUpload to code-scanningstep was then skipped). The dereferenced commit for v4.36.0 is7211b7c8077ea37d8641b6271f6a365a22a5fbfa.Fix: pin
github/codeql-action/upload-sarifto that commit SHA (still v4.36.0). The other three actions were already pinned to valid commits, verified against their repos.Scorecard analysis otherwise ran fine and scored 5.3 — it'll publish once this lands and the workflow re-runs on
devel.Closes #62
🤖 Generated with Claude Code