Skip to content

Commit 90cd947

Browse files
christiangdaclaude
andcommitted
fix(ci): pin scorecard-action and codecov to commit SHAs, not tag objects
The OpenSSF Scorecard publish step at securityscorecards.dev was failing with: workflow verification failed: imposter commit: 99c09fe975337306107572b4fdf4db224cf8e2f2 does not belong to ossf/scorecard-action Root cause: when PR-1 resolved the action SHAs, both ossf/scorecard- action@v2.4.3 and codecov/codecov-action@v5.5.4 turned out to be annotated tags. The `git/matching-refs/tags/<tag>` API returns the tag object's SHA in that case, not the commit it points to. GitHub Actions itself accepts either form, so CI ran fine — but the scorecard publisher's "imposter commit" verifier rejects anything that isn't a real commit on the action's repo. Dereferenced both tags to their commit SHAs: * ossf/scorecard-action @ v2.4.3 99c09fe975337306107572b4fdf4db224cf8e2f2 (tag object) → 4eaacf0543bb3f2c246792bd56e8cdeffafb205a (commit) * codecov/codecov-action @ v5.5.4 aa56896cf108bd10b5eb883cd1d24196da57f695 (tag object) → 75cd11691c0faa626561e295848008c8a7dddffe (commit) Verified each new SHA via `GET /repos/<owner>/<repo>/commits/<sha>`. The codecov change is precautionary — codecov has no equivalent verifier — but keeps the pinning style consistent across the repo. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 894480d commit 90cd947

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: make test
4040

4141
- name: codecov coverage report
42-
uses: codecov/codecov-action@aa56896cf108bd10b5eb883cd1d24196da57f695 # v5.5.4
42+
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5.5.4
4343
with:
4444
files: ./coverage.out
4545

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
persist-credentials: false
2626

2727
- name: Run analysis
28-
uses: ossf/scorecard-action@99c09fe975337306107572b4fdf4db224cf8e2f2 # v2.4.3
28+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
2929
with:
3030
results_file: results.sarif
3131
results_format: sarif

0 commit comments

Comments
 (0)