Commit e1e7f01
committed
ci: Restrict who can run Claude workflows
Use guardrails to restrict who can run Claude-related workflows.
- For code reviews, only run the workflow if the author of the Pull
Request is from the owning organisation, or the owner, or a GitHub
collaborator for the repository.
- For @claude comments in Issue comments and descriptions or Pull
Request review comments, restrict the workflow to commenters with the
same association (member, owner, or collaborator).
Link: https://docs.github.com/en/graphql/reference/enums#commentauthorassociation
Link: https://docs.github.com/en/webhooks/webhook-events-and-payloads
Signed-off-by: Quentin Monnet <[email protected]>1 parent c33d8ab commit e1e7f01
File tree
2 files changed
+36
-9
lines changed- .github/workflows
2 files changed
+36
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
20 | 44 | | |
21 | 45 | | |
22 | 46 | | |
| |||
0 commit comments