Skip to content

Fix build workflow auth failure by switching metrics action to github.token - #6

Merged
whozahm3d merged 2 commits into
mainfrom
copilot/fix-failing-github-actions-build
Jul 16, 2026
Merged

Fix build workflow auth failure by switching metrics action to github.token#6
whozahm3d merged 2 commits into
mainfrom
copilot/fix-failing-github-actions-build

Conversation

Copilot AI commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

The build GitHub Actions job failed because the metrics steps authenticated with secrets.METRICS_TOKEN and received Bad credentials. This change removes dependency on that external PAT for this workflow and aligns setup docs with the actual auth model.

  • Workflow auth change (build failure root cause)

    • Updated all lowlighter/metrics steps in .github/workflows/generate-stats.yml to use the built-in ${{ github.token }} instead of secrets.METRICS_TOKEN.
    • Keeps auth scoped to the workflow run and avoids breakage from missing/expired custom secrets.
  • Setup/troubleshooting docs alignment

    • Updated SETUP.md to reflect that METRICS_TOKEN is no longer required.
    • Added explicit guidance to enable Actions → Workflow permissions → Read and write, which is required for the commit output mode used by the workflow.
# .github/workflows/generate-stats.yml
with:
  token: ${{ github.token }}
  output_action: commit
  committer_branch: main

Copilot AI changed the title [WIP] Fix failing GitHub Actions job build Fix build workflow auth failure by switching metrics action to github.token Jul 16, 2026
Copilot AI requested a review from whozahm3d July 16, 2026 18:05

@whozahm3d whozahm3d left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Well

@whozahm3d
whozahm3d marked this pull request as ready for review July 16, 2026 18:07
Copilot AI review requested due to automatic review settings July 16, 2026 18:07
@whozahm3d
whozahm3d merged commit a8c168f into main Jul 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown

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 fixes the GitHub Actions stats generation workflow authentication failure by replacing the external METRICS_TOKEN secret with the built-in ${{ github.token }}, and updates setup documentation to match the new authentication and permissions requirements.

Changes:

  • Switched all lowlighter/metrics steps in the stats workflow to use ${{ github.token }} instead of secrets.METRICS_TOKEN.
  • Updated SETUP.md to remove PAT/secret setup steps and add guidance to enable Actions workflow write permissions.
  • Refreshed troubleshooting guidance to reflect the new auth/permissions model.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
SETUP.md Removes PAT/secret setup instructions and documents enabling workflow write permissions + updated troubleshooting.
.github/workflows/generate-stats.yml Replaces METRICS_TOKEN usage with ${{ github.token }} for all metrics generation steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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