Skip to content

Commit 34165c0

Browse files
committed
security: limit @claude triggers to comments only
Remove issue creation/assignment and PR review submission events, keeping only comment-based triggers. This reduces the event surface area and ensures @claude is only invoked through explicit comment mentions, making it harder to trigger accidentally.
1 parent 744f1c0 commit 34165c0

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

.github/workflows/claude.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
types: [created]
66
pull_request_review_comment:
77
types: [created]
8-
issues:
9-
types: [opened, assigned]
10-
pull_request_review:
11-
types: [submitted]
128

139
jobs:
1410
claude:
@@ -21,14 +17,6 @@ jobs:
2117
github.event_name == 'pull_request_review_comment' &&
2218
contains(github.event.comment.body, '@claude') &&
2319
contains('OWNER,MEMBER,COLLABORATOR', github.event.comment.author_association)
24-
) || (
25-
github.event_name == 'pull_request_review' &&
26-
contains(github.event.review.body, '@claude') &&
27-
contains('OWNER,MEMBER,COLLABORATOR', github.event.review.author_association)
28-
) || (
29-
github.event_name == 'issues' &&
30-
(contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')) &&
31-
contains('OWNER,MEMBER,COLLABORATOR', github.event.issue.author_association)
3220
)
3321
runs-on: ubuntu-latest
3422
permissions:

0 commit comments

Comments
 (0)