Skip to content

fix: replace expired ORG_TOKEN with github.token in metrics workflow - #488

Merged
ss-o merged 3 commits into
mainfrom
copilot/fix-metrics-job-failure
Jul 28, 2026
Merged

fix: replace expired ORG_TOKEN with github.token in metrics workflow#488
ss-o merged 3 commits into
mainfrom
copilot/fix-metrics-job-failure

Conversation

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

ORG_TOKEN secret is expired/invalid, causing every lowlighter/metrics step to fail with HTTP 401 "Bad credentials" after 3 retries.

Changes

  • metrics.yml: Replace all 7 uses of ${{ secrets.ORG_TOKEN }} with ${{ github.token }}

GITHUB_TOKEN is auto-provisioned per run (no expiry), has the required scopes for reading org/repo data, and the job already holds permissions: contents: write for committing to the metrics branch. Aligns with the org runbook preference for GITHUB_TOKEN over PATs where sufficient.

secrets.GOOGLE_MAP_TOKEN (stargazers worldmap) is unchanged — it's a Google Maps credential, not a GitHub token.

Copilot AI requested review from Copilot and removed request for Copilot July 28, 2026 17:22
Copilot AI requested review from Copilot and removed request for Copilot July 28, 2026 17:25
Copilot AI changed the title [WIP] Fix failing GitHub Actions job metrics fix: replace expired ORG_TOKEN with github.token in metrics workflow Jul 28, 2026
Copilot finished work on behalf of ss-o July 28, 2026 17:26
Copilot AI requested a review from ss-o July 28, 2026 17:26
@ss-o
ss-o marked this pull request as ready for review July 28, 2026 21:15
@ss-o
ss-o requested a review from a team as a code owner July 28, 2026 21:15
Copilot AI review requested due to automatic review settings July 28, 2026 21:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the organization’s Metrics workflow to stop using the expired ORG_TOKEN secret by switching all lowlighter/metrics token: inputs to the per-run github.token.

Changes:

  • Replaced 7 occurrences of token: ${{ secrets.ORG_TOKEN }} with token: ${{ github.token }} in the metrics workflow.
  • Kept non-GitHub credentials (e.g., Google Maps token used for the stargazers worldmap) unchanged.

Comment thread .github/workflows/metrics.yml
Copilot AI requested review from Copilot and removed request for Copilot July 28, 2026 21:21
Copilot finished work on behalf of ss-o July 28, 2026 21:21
Copilot AI requested a review from ss-o July 28, 2026 21:21
@ss-o
ss-o merged commit f0f8a9b into main Jul 28, 2026
5 checks passed
@ss-o
ss-o deleted the copilot/fix-metrics-job-failure branch July 28, 2026 21:30
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.

3 participants