Skip to content

Fix label workflow auth token wiring for issue labeling#180

Merged
naheel0 merged 2 commits into
mainfrom
copilot/fix-label-job-failure
Jun 13, 2026
Merged

Fix label workflow auth token wiring for issue labeling#180
naheel0 merged 2 commits into
mainfrom
copilot/fix-label-job-failure

Conversation

Copilot AI commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

The label GitHub Actions job was failing with 401 Bad credentials when calling the Issues Labels API. The workflow now uses the standard Actions secret token path for authenticated API calls.

  • Root cause

    • The label bot step exported GITHUB_TOKEN from an incorrect context expression, causing invalid credentials at runtime.
  • Change

    • Updated .github/workflows/issue_label_bot.yaml to source the token from secrets.GITHUB_TOKEN.
  • Effect

    • The Python labeling step continues to run unchanged, but now sends a valid bearer token when posting labels.
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
readme-gen-ai Ready Ready Preview, Comment Jun 13, 2026 4:17pm

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'label' Fix label workflow auth token wiring for issue labeling Jun 13, 2026
Copilot AI requested a review from jaseel0 June 13, 2026 16:17
@jaseel0 jaseel0 marked this pull request as ready for review June 13, 2026 16:30
@naheel0 naheel0 merged commit edaf7b2 into main Jun 13, 2026
6 checks passed
@naheel0 naheel0 deleted the copilot/fix-label-job-failure branch June 13, 2026 16:31
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