Skip to content

Fix Scorecards analysis: replace expired SCORECARD_READ_TOKEN with GITHUB_TOKEN - #5477

Draft
Alan Jowett (Alan-Jowett) with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-scorecards-analysis-job
Draft

Fix Scorecards analysis: replace expired SCORECARD_READ_TOKEN with GITHUB_TOKEN#5477
Alan Jowett (Alan-Jowett) with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-scorecards-analysis-job

Conversation

Copilot AI commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

The "Scorecards analysis" CI job was failing with 401 Bad credentials because SCORECARD_READ_TOKEN (a PAT) had expired.

Description

Replaces secrets.SCORECARD_READ_TOKEN with secrets.GITHUB_TOKEN in .github/workflows/scorecards-analysis.yml.

For public repositories, GITHUB_TOKEN is the recommended authentication method for scorecard-action — it's automatically provisioned per-run and never expires. The job already declares all required permissions (contents: read, security-events: write, actions: read, id-token: write).

Testing

No code changes; CI-only fix. The Scorecards workflow will validate on next push to main.

  • Unit tests are added.
  • Driver tests are added.
  • Fuzz tests are added.

Documentation

No documentation impact.

Installation

No installer impact.

…THUB_TOKEN

The Scorecards job was failing with "401 Bad credentials" because the
SCORECARD_READ_TOKEN secret was expired/invalid. For public repositories,
GITHUB_TOKEN is the recommended approach - it's automatically provided,
never expires, and has the necessary read permissions.

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job Scorecards analysis Fix Scorecards analysis: replace expired SCORECARD_READ_TOKEN with GITHUB_TOKEN Jul 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request isn't linked to any GitHub issue. Please reference an issue with a keyword such as Fixes #123, Closes #456, etc., so the work can be tracked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants