Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Limit auto-review to same-repo PRs, use @claude for forks

Manav Rathi0de439661b68
diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml
index 18ec266156..e90f196f37 100644
--- a/.github/workflows/claude-code-review.yml
+++ b/.github/workflows/claude-code-review.yml
@@ -1,17 +1,13 @@
name: Claude Code Review
on:
- pull_request_target:
+ pull_request:
types: [opened, synchronize]
jobs:
claude-review:
- # Only run for: owners, members, collaborators, and whitelisted contributors
- if: |
- github.event.pull_request.author_association == 'OWNER' ||
- github.event.pull_request.author_association == 'MEMBER' ||
- github.event.pull_request.author_association == 'COLLABORATOR' ||
- contains(fromJSON('["neeraj-pilot"]'), github.event.pull_request.user.login)
+ # Only run for same-repo PRs (not forks)
+ if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
@@ -23,9 +19,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- with:
- # IMPORTANT: Checkout the PR head ref from the fork for security
- ref: ${{ github.event.pull_request.head.sha }}
- name: Run Claude Code Review
id: claude-review