Skip to content

Commit 9b83046

Browse files
ci: workflows: claude-pr-review: Ignore outside collaborators for now
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent f40daaa commit 9b83046

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/claude-pr-review.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@ jobs:
1313
name: Claude PR Review
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 15
16+
# Outside collaborators without write access cannot be reviewed: the
17+
# claude-code-action performs its own actor-permission check and hard-fails
18+
# on a `read`-only actor. Only OWNER/MEMBER/COLLABORATOR authors normally
19+
# have write access, so gate on author_association to cleanly SKIP
20+
# the review (neutral) for outside contributors instead of failing the run.
1621
if: >-
1722
${{ !github.event.pull_request.draft
18-
&& github.event.pull_request.user.type != 'Bot' }}
23+
&& github.event.pull_request.user.type != 'Bot'
24+
&& contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'),
25+
github.event.pull_request.author_association) }}
1926
permissions:
2027
contents: read
2128
pull-requests: write

0 commit comments

Comments
 (0)