File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments