From 0180dfc9804d6dd4ec001086f560b76a2b8f17b0 Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Mon, 16 Feb 2026 11:47:53 +0000 Subject: [PATCH] ci: use pull_request_target for claude review on fork PRs --- .github/workflows/claude-code-review.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 81170e8..72690e0 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -1,7 +1,7 @@ name: Claude Code Review on: - pull_request: + pull_request_target: types: [opened, synchronize] # Optional: Only run on specific file changes # paths: @@ -29,6 +29,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: + ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 1 - name: Run Claude Code Review