Skip to content

Commit ff800df

Browse files
authored
.github: restrict @claude trigger to org members and collaborators (#1094)
1 parent de05ee8 commit ff800df

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ jobs:
1111
if: |
1212
(github.event_name == 'issue_comment' &&
1313
contains(github.event.comment.body, '@claude') &&
14-
github.event.issue.pull_request) ||
14+
github.event.issue.pull_request &&
15+
(github.event.comment.author_association == 'OWNER' ||
16+
github.event.comment.author_association == 'MEMBER' ||
17+
github.event.comment.author_association == 'COLLABORATOR')) ||
1518
(github.event_name == 'pull_request' &&
1619
contains(github.event.pull_request.labels.*.name, 'claude-review'))
1720
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)