We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ef0eae commit 61df235Copy full SHA for 61df235
1 file changed
.github/workflows/claude-code-review.yml
@@ -13,6 +13,9 @@ on:
13
jobs:
14
claude-review:
15
runs-on: ubuntu-latest
16
+ # Fork PRs can't get id-token/secrets on pull_request events (GitHub security policy),
17
+ # so the OIDC flow fails. Auto-run only on same-repo PRs; use workflow_dispatch for forks.
18
+ if: github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository
19
permissions:
20
contents: read
21
pull-requests: write
@@ -24,6 +27,7 @@ jobs:
24
27
uses: actions/checkout@v6
25
28
with:
26
29
fetch-depth: 1
30
+ ref: ${{ github.event.pull_request.head.sha || format('refs/pull/{0}/merge', inputs.pr_number) }}
31
32
- name: Run Claude Code Review
33
id: claude-review
0 commit comments