From 95ff5ccd88617158c7b3d444f3047d11fcf27eb2 Mon Sep 17 00:00:00 2001 From: Simo Lin Date: Wed, 1 Apr 2026 05:55:04 -0700 Subject: [PATCH] fix(ci): skip Claude review on fork PRs Fork PRs can't safely use pull_request_target (some workflows run without maintainer approval). Revert to pull_request trigger and skip fork PRs. Fork PRs are still reviewed by CodeRabbit and Gemini. What changed: - .github/workflows/claude-code-review.yml: - Trigger: pull_request (not pull_request_target) - Add !github.event.pull_request.head.repo.fork condition - Remove ref override (not needed for pull_request) Signed-off-by: Simo Lin --- .github/workflows/claude-code-review.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index b7f815f7ba..a2ec5204e7 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -27,6 +27,7 @@ jobs: github.event_name == 'pull_request' && github.repository == 'lightseekorg/smg' && github.actor != 'dependabot[bot]' + && !github.event.pull_request.head.repo.fork runs-on: k8s-runner-cpu timeout-minutes: 30 concurrency: