Skip to content

Commit 83f5a68

Browse files
fix: add id-token: write permission to scorecard reusable workflow (#1)
The Sigstore/Fulcio signing step requires a GitHub OIDC token to sign scorecard results for publication. Reusable workflows have their own permissions scope — the caller's id-token: write grant doesn't flow through unless declared here. Without this, the token expires immediately causing: error signing scorecard results: expired_token Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6c4c2d8 commit 83f5a68

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
permissions:
1515
contents: read
1616
security-events: write
17+
id-token: write
1718
steps:
1819
- name: Harden runner
1920
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0

0 commit comments

Comments
 (0)