Skip to content

chore(ci): use CLAUDE_CODE_OAUTH_TOKEN for claude-code-action#249

Merged
lstein merged 1 commit into
masterfrom
lstein/chore/fix-claude-action-oauth-token
May 21, 2026
Merged

chore(ci): use CLAUDE_CODE_OAUTH_TOKEN for claude-code-action#249
lstein merged 1 commit into
masterfrom
lstein/chore/fix-claude-action-oauth-token

Conversation

@lstein
Copy link
Copy Markdown
Owner

@lstein lstein commented May 21, 2026

Summary

  • The claude.yml workflow was passing secrets.ANTHROPIC_API_KEY, but the repo is configured with a CLAUDE_CODE_OAUTH_TOKEN secret (from /install-github-app).
  • The action saw no API key, fell back to looking for the OAuth token, and reported it unset.
  • Switch the workflow to pass claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} so the existing repo secret is actually used.

Test plan

  • After merge, open an issue or PR comment containing @claude and confirm the workflow runs without the "CLAUDE_CODE_OAUTH_TOKEN is not set" error.

🤖 Generated with Claude Code

The repository is configured with a CLAUDE_CODE_OAUTH_TOKEN secret
(set up via /install-github-app), but the workflow was passing
secrets.ANTHROPIC_API_KEY, which doesn't exist. The action then
reported CLAUDE_CODE_OAUTH_TOKEN as unset.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lstein lstein enabled auto-merge (squash) May 21, 2026 02:24
@lstein lstein merged commit 90c76d5 into master May 21, 2026
5 checks 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