Skip to content

Commit a39066a

Browse files
committed
dev-inf: Checkout PR head SHA for Claude Code review action
When using pull_request_target, the workflow runs in the context of the base branch. By default, checkout merges with the target branch, which could result in the LLM reporting on things that don't appear to actually exist in the PR. Explicitly set ref to the PR head SHA to analyze the actual PR code. Release note: None Epic: None
1 parent eaab577 commit a39066a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/pr-analyzer-threestage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v5
1818
with:
19+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
1920
fetch-depth: 1
2021

2122
- name: Authenticate to Google Cloud

0 commit comments

Comments
 (0)