Skip to content

fix: pass github_token explicitly to claude-code-action#7

Merged
yanas merged 1 commit into
masterfrom
fix/pr-classify-github-token
Mar 11, 2026
Merged

fix: pass github_token explicitly to claude-code-action#7
yanas merged 1 commit into
masterfrom
fix/pr-classify-github-token

Conversation

@yanas

@yanas yanas commented Mar 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds github_token: ${{ secrets.GITHUB_TOKEN }} to the Classify PR step
  • Without it, claude-code-action@beta attempts to exchange the OIDC token for a Claude Code GitHub App token, which fails with 401 when the app is not installed

Test plan

  • Merge and verify the next PR triggers a successful classification comment

🤖 Generated with Claude Code

Without an explicit github_token, claude-code-action@beta tries to
exchange the OIDC token for a Claude Code GitHub App token, which
fails when the app is not installed. Passing GITHUB_TOKEN directly
lets the action authenticate via ANTHROPIC_API_KEY instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Mar 11, 2026

Copy link
Copy Markdown

Claude finished @yanas's task —— View job


{
  "type": "fix",
  "platforms": [],
  "summary": "Adds explicit github_token to claude-code-action step in PR classification workflow to prevent 401 authentication failures when the Claude Code GitHub App is not installed."
}

@github-actions

Copy link
Copy Markdown

Warning

PR classification could not determine the PR type. Please apply a type: label manually.

@yanas yanas merged commit ddd594f into master Mar 11, 2026
1 check 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