Commit bce7c46
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.
- For @claude comments in Issue comments and descriptions or Pull
Request review comments, restrict the workflow to commenters from the
owning organisation.
These checks could be extended with COLLABORATOR in addition to MEMBER
in the future, depending on our needs.
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 <qmo@qmon.net>1 parent c33d8ab commit bce7c46
File tree
2 files changed
+22
-9
lines changed- .github/workflows
2 files changed
+22
-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 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
20 | 34 | | |
21 | 35 | | |
22 | 36 | | |
| |||
0 commit comments