Skip to content

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

@peczenyj

Description

@peczenyj

The Scorecard workflow's Run analysis step fails when publishing to the OpenSSF webapp:

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; f52b05f is the tag-object SHA, not a commit, so it can't be used as a uses: ref and Scorecard rejects it as an imposter. The real commit for v4.36.0 is 7211b7c8077ea37d8641b6271f6a365a22a5fbfa.

Fix: pin github/codeql-action/upload-sarif to the dereferenced commit SHA. (The other three actions are already pinned to valid commits.) Scorecard analysis otherwise runs fine — it scored 5.3.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions