Skip to content

fix(ci): pin codeql action to its commit SHA, not the tag object#63

Merged
peczenyj merged 1 commit into
develfrom
fix/scorecard-codeql-sha
May 27, 2026
Merged

fix(ci): pin codeql action to its commit SHA, not the tag object#63
peczenyj merged 1 commit into
develfrom
fix/scorecard-codeql-sha

Conversation

@peczenyj
Copy link
Copy Markdown
Owner

The Scorecard workflow's Run analysis step fails on publish:

400 Bad Request: imposter commit: f52b05f4acaaa234e44466e66d29050e135ea9ef
does not belong to github/codeql-action/upload-sarif

github/codeql-action's v4.36.0 is an annotated tag, so f52b05f is the tag-object SHA — not a commit. It can't serve as a uses: ref, and the OpenSSF Scorecard webapp verification rejects it as an imposter, failing the step (the Upload to code-scanning step was then skipped). The dereferenced commit for v4.36.0 is 7211b7c8077ea37d8641b6271f6a365a22a5fbfa.

Fix: pin github/codeql-action/upload-sarif to 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

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>
@peczenyj peczenyj merged commit 5d3d63f into devel May 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scorecard.yml: codeql action pinned to tag-object SHA (imposter commit), publish fails

1 participant