Skip to content

Commit b310c43

Browse files
authored
Update Claude Code Review workflow to include checkout (#1247)
1 parent e25be02 commit b310c43

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,21 @@ jobs:
1515
id-token: write
1616

1717
steps:
18-
# IMPORTANT: no checkout for pull_request_target (fork-safe)
18+
- name: Checkout PR head (fork)
19+
uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.event.pull_request.head.sha }}
22+
fetch-depth: 1
23+
1924
- name: Run Claude Code Review
2025
id: claude-review
2126
uses: anthropics/claude-code-action@v1
2227
with:
2328
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
24-
25-
# Workaround: bypass Anthropic OIDC->GitHub App token exchange
2629
github_token: ${{ github.token }}
2730

2831
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
2932
plugins: 'code-review@claude-code-plugins'
3033
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
31-
32-
# Optional: lets Claude read CI results
3334
additional_permissions: |
3435
actions: read

0 commit comments

Comments
 (0)