From a8a48093ab9a41c4ba73841b6b8920187cbdeee7 Mon Sep 17 00:00:00 2001 From: Viral Sangani Date: Mon, 9 Mar 2026 19:56:50 +0530 Subject: [PATCH] fix: enable Claude Code Review for fork PRs Use pull_request_target trigger so the workflow runs in the base repo context, allowing OIDC tokens and secrets to be available for fork PRs. Also change pull-requests permission to write so Claude can post review comments. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/claude-code-review.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index b5e8cfd4d..9b9c75156 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, ready_for_review, reopened] # Optional: Only run on specific file changes # paths: @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: read - pull-requests: read + pull-requests: write issues: read id-token: write