Skip to content

Commit b45e7ff

Browse files
committed
Switch Claude actions from OAuth token to API key auth
OAuth tokens expire periodically, requiring manual regeneration. API keys are stable and don't expire.
1 parent 9709d79 commit b45e7ff

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/claude-code-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
id: claude-review
3737
uses: anthropics/claude-code-action@v1
3838
with:
39-
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
39+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
4040
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
4141
plugins: 'code-review@claude-code-plugins'
4242
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'

.github/workflows/claude.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
id: claude
3535
uses: anthropics/claude-code-action@v1
3636
with:
37-
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
37+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
3838

3939
# This is an optional setting that allows Claude to read CI results on PRs
4040
additional_permissions: |
@@ -47,4 +47,3 @@ jobs:
4747
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4848
# or https://code.claude.com/docs/en/cli-reference for available options
4949
# claude_args: '--allowed-tools Bash(gh pr:*)'
50-

0 commit comments

Comments
 (0)