.github: restrict @claude trigger to org members and collaborators (#1094)

This commit is contained in:
Slyghtning 2026-03-12 10:04:19 +01:00 committed by GitHub
parent de05ee8573
commit ff800df41d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,10 @@ jobs:
if: |
(github.event_name == 'issue_comment' &&
contains(github.event.comment.body, '@claude') &&
github.event.issue.pull_request) ||
github.event.issue.pull_request &&
(github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'MEMBER' ||
github.event.comment.author_association == 'COLLABORATOR')) ||
(github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'claude-review'))
runs-on: ubuntu-latest