ci: Enable users without write action to the repo to access claude review
The labelling approach introduced in 6089075265
means contributors can now trigger the workflow on their own when the label
is added by a maintainer and they update the PR. Hence we need to allow all
users to access the claude code action. This is safe because we already gate
the workflow ourselves to only the contributors that we want to allow.
Additionally, the claude code job has no permissions anymore except read access
to the repository and can execute very limited tools, so this should be safe.
This commit is contained in:
committed by
Daan De Meyer
parent
2cada660de
commit
2967e89597
@@ -224,6 +224,11 @@ jobs:
|
||||
# Required by claude-code-action even though Claude itself doesn't
|
||||
# call the GitHub API — the action uses it for permission checks.
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# Safe because the workflow's `if` condition already restricts
|
||||
# execution to trusted actors (MEMBER/OWNER/COLLABORATOR) or PRs
|
||||
# that a trusted actor explicitly labeled, and this job only has
|
||||
# read-only permissions.
|
||||
allowed_non_write_users: "*"
|
||||
track_progress: false
|
||||
show_full_output: "true"
|
||||
claude_args: |
|
||||
|
||||
Reference in New Issue
Block a user