Skip to content

Commit 4bae73b

Browse files
bloveclaude
andauthored
ci(scorecard): pass SCORECARD_TOKEN to enable Branch-Protection check (#689)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3ad175f commit 4bae73b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
with:
2929
results_file: results.sarif
3030
results_format: sarif
31+
# Read-only PAT (Administration: read) so Scorecard can evaluate the
32+
# Branch-Protection check, which the default GITHUB_TOKEN cannot read.
33+
# Falls back gracefully (check stays inconclusive) if the secret is unset.
34+
repo_token: ${{ secrets.SCORECARD_TOKEN }}
3135
publish_results: true
3236
- name: Upload artifact
3337
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2

0 commit comments

Comments
 (0)