Skip to content

Commit 50408cd

Browse files
committed
Add ANTHROPIC_API_KEY env var to Claude workflows
- Add env section with ANTHROPIC_API_KEY to both workflow steps - Standardize secret name from CLAUDE_GITHUB_ACTIONS_ANTHROPIC_KEY to ANTHROPIC_API_KEY - Ensures API key is available as environment variable for Claude Code operations
1 parent ffddf4d commit 50408cd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ jobs:
4949
- name: Run Claude Code Review
5050
id: claude-review
5151
uses: anthropics/claude-code-action@v1
52+
env:
53+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
5254
with:
53-
anthropic_api_key: ${{ secrets.CLAUDE_GITHUB_ACTIONS_ANTHROPIC_KEY }}
55+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
5456
track_progress: true
5557
prompt: |
5658
You are reviewing code changes for a React component library with git diffs included in the prompt. Focus on ensuring the changes are sound, clean, intentional, and void of regressions.

.github/workflows/claude.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
- name: Run Claude Code
6161
id: claude
6262
uses: anthropics/claude-code-action@v1
63+
env:
64+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
6365
with:
6466
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
6567
track_progress: true

0 commit comments

Comments
 (0)