From b758f63d7f4892296f9e899de26408bc60bd7f73 Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Sat, 29 Nov 2025 11:09:51 +0900 Subject: [PATCH] feat: use pull_request_target to support fork PR reviews --- .github/workflows/claude-code.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/claude-code.yml b/.github/workflows/claude-code.yml index 67e1683..42e8fc2 100644 --- a/.github/workflows/claude-code.yml +++ b/.github/workflows/claude-code.yml @@ -9,7 +9,7 @@ on: types: [opened, assigned] pull_request_review: types: [submitted] - pull_request: + pull_request_target: types: [opened, synchronize, reopened] jobs: @@ -44,7 +44,7 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} pr-review: - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request_target' runs-on: ubuntu-latest permissions: contents: read @@ -67,6 +67,7 @@ jobs: with: use_bedrock: "true" github_token: ${{ secrets.GITHUB_TOKEN }} + allowed_non_write_users: "*" prompt: | REPO: ${{ github.repository }} PR NUMBER: ${{ github.event.pull_request.number }}