Skip to content

ci: pin upload-sarif to the release commit rather than its tag object - #15

Merged
kkdev92 merged 1 commit into
mainfrom
ci/scorecard-pin-commit
Sep 23, 2026
Merged

kkdev92 merged 1 commit into
mainfrom
ci/scorecard-pin-commit

Conversation

@kkdev92

@kkdev92 kkdev92 commented Sep 23, 2026

Copy link
Copy Markdown
Owner

Pins github/codeql-action/upload-sarif in the Scorecard workflow to the commit that v4.38.1 points to, rather than to the tag object.

Why

The pinned SHA, c23de5a82f64bb08c6d9f28844551440ca298e76, is the annotated tag object for v4.38.1, not a commit. GitHub Actions resolves it, so the workflow has kept passing. Scorecard's publishing API does not accept it. Every run on main since the pin was set has logged:

workflow verification failed: imposter commit: c23de5a82f64bb08c6d9f28844551440ca298e76 does not belong to github/codeql-action/upload-sarif

The action reports the rejection as a warning, so the job stayed green while the results published for this repository stopped updating. The upload to code scanning was not affected.

Change

One line in .github/workflows/scorecard.yml. The tag object points to 1c5b675653bb5c22dbe9b12b556ec555138e09fd, which carries the v4.38.1 and v4 tags, so the version and the code that runs are unchanged. The trailing comment still reads # v4.38.1.

Verification

  • repos/github/codeql-action/git/tags/c23de5a8… resolves to object.type: commit, object.sha: 1c5b6756…, and the repository's tag list puts v4.38.1 and v4 on that commit.
  • The same change in kkdev92/vscode-ext-kit restored publishing: its next run on main logged no verification error, and the published result moved to that commit.
  • Publishing runs only on the default branch, so this repository's result is confirmed after merge rather than on this pull request.

🤖 Generated with Claude Code

The upload-sarif step was pinned to c23de5a8, the annotated tag object
for v4.38.1, rather than to the commit the tag points to. GitHub Actions
resolves either, so the workflow kept passing. Scorecard's publishing API
does not accept it: it rejected every run on main since the pin was set
with "imposter commit: c23de5a8... does not belong to
github/codeql-action/upload-sarif". The action reports that as a warning,
so the job stayed green while the published results stopped updating.
The upload to code scanning was not affected.

Pin 1c5b6756, the commit that v4.38.1 and v4 point to. The version and
the code that runs are unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@kkdev92
kkdev92 merged commit 8b4510d into main Sep 23, 2026
13 checks passed
@kkdev92
kkdev92 deleted the ci/scorecard-pin-commit branch September 23, 2026 00:37
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.

1 participant