Skip to content

Fix Scorecard authentication with GITHUB_TOKEN - #15

Merged
Liang-Chun Tsai (ltsai-dev) merged 1 commit into
mainfrom
ltsai-microsoft-fix-scorecard-github-token
Aug 18, 2026
Merged

Fix Scorecard authentication with GITHUB_TOKEN#15
Liang-Chun Tsai (ltsai-dev) merged 1 commit into
mainfrom
ltsai-microsoft-fix-scorecard-github-token

Conversation

@ltsai-dev

Copy link
Copy Markdown
Contributor

Summary

The Scorecard workflow's personal access token has expired, causing every run since July 6 to fail with 401 Bad credentials. Switch to GitHub Actions' automatic short-lived token to eliminate manual token rotation.

Changes

  • Grant the private-repository read permissions required by Scorecard.
  • Remove the SCORECARD_TOKEN input so Scorecard uses the workflow-issued GITHUB_TOKEN.
  • Preserve actions: read for SARIF upload.

Test plan

The resulting workflow matches the known-good workflow already merged and validated in microsoft/thinkingbox:

The failing run in this repository is https://github.com/microsoft/thinkingbox-data/actions/runs/32084766638/job/95554904114.

Related issues

N/A

Remove the expiring personal token override and grant the private-repository read permissions required by Scorecard.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@ltsai-dev
Liang-Chun Tsai (ltsai-dev) merged commit a27fe2c into main Aug 18, 2026
4 checks passed
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