ci: use CLAUDE_CODE_OAUTH_TOKEN for Claude Code Action (#600)

## Summary

Switches the Claude Code Action auth from `ANTHROPIC_API_KEY` to
`CLAUDE_CODE_OAUTH_TOKEN`, which uses a Claude Max/Pro subscription
instead of pay-per-token API billing.

The PR #599 workflow run failed with:
\`\`\`
Environment variable validation failed:
- Either ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN is required
\`\`\`

## Required setup (one-time, maintainer)

\`\`\`bash
# Generate an OAuth token tied to your Claude account
claude setup-token

# Store it in repo secrets
gh secret set CLAUDE_CODE_OAUTH_TOKEN --repo FluidInference/FluidAudio
# (paste the token when prompted)
\`\`\`

Verify:
\`\`\`bash
gh secret list --repo FluidInference/FluidAudio
\`\`\`

## Test plan

- [ ] Maintainer runs the two commands above to populate the secret
- [ ] After merge, post \`@claude help\` on a throwaway issue and
confirm the workflow runs without env-var errors
This commit is contained in:
Alex
2026-05-11 11:15:55 -04:00
committed by GitHub
parent ae1ef30240
commit d9d06c731a
+1 -1
View File
@@ -34,4 +34,4 @@ jobs:
id: claude
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}