Skip to content

Commit 0464230

Browse files
authored
Use dedicated API key secret for public repo Claude workflows (#11123)
1 parent 264e7d1 commit 0464230

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
id: claude-review
4040
uses: anthropics/claude-code-action@5fb899572b81d2bb648d4d187173a2f423a9677c # v1.0.96
4141
with:
42-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_PR_REVIEWS }}
42+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_PR_REVIEWS_PUBLIC_REPOS }}
4343
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
4444
plugins: 'code-review@claude-code-plugins'
4545
prompt: '/code-review:code-review --comment ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'

.github/workflows/claude.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ jobs:
5555
id: claude
5656
uses: anthropics/claude-code-action@5fb899572b81d2bb648d4d187173a2f423a9677c # v1.0.96
5757
with:
58-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_PR_REVIEWS }}
58+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_PR_REVIEWS_PUBLIC_REPOS }}
5959
additional_permissions: |
6060
actions: read

0 commit comments

Comments
 (0)