Skip to content

fix(ci): allow Claude review on external contributor PRs - #1039

Merged
max-sixty merged 1 commit into
mainfrom
claude-review
Feb 15, 2026
Merged

max-sixty merged 1 commit into
mainfrom
claude-review

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

  • The claude-review workflow was failing on PRs from external contributors (like fix(shell): nushell detection checks multiple config paths #1038) because claude-code-action requires the PR author to have write permissions by default
  • Set allowed_non_write_users: "*" to allow the review workflow to run on all PRs, since reviewing external contributions is the workflow's purpose
  • The claude-review environment already scopes secrets to only CLAUDE_CODE_OAUTH_TOKEN

Test plan

This was written by Claude Code on behalf of max-sixty

The review workflow was failing for PRs from users without write
permissions (e.g., arnaudlimbourg on #1038) because claude-code-action
requires write access by default. Set allowed_non_write_users to "*"
since the whole purpose of this workflow is reviewing external PRs.

Co-Authored-By: Claude <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

This is a clean, well-motivated one-line change. The claude-code-action permission check defaults to requiring write access on the PR author, which blocks reviews of external contributor PRs — exactly the use case this workflow is built for.

Setting allowed_non_write_users: "*" is appropriate here because:

  1. The workflow uses a scoped claude-review environment that only exposes CLAUDE_CODE_OAUTH_TOKEN
  2. The github_token is the built-in ${{ github.token }}, not a PAT with elevated access
  3. The workflow's permissions block is already narrowly scoped
  4. The claude-code-action tools list in claude_args doesn't include anything destructive beyond what the scoped permissions allow

One observation worth noting (not blocking):

Prompt injection surface from external PRs

Since this workflow runs on pull_request_target and now allows all external contributors, the prompt injection surface from malicious PR content (titles, descriptions, diffs with hidden instructions) is worth keeping in mind. The claude-code-action does have built-in sanitization for HTML comments, invisible characters, etc., but this is an evolving area. The current workflow design (review-only, scoped environment, no publishing tokens) limits the blast radius appropriately.

Looks good to merge.

@max-sixty
max-sixty merged commit c9ca2c8 into main Feb 15, 2026
21 checks passed
@max-sixty
max-sixty deleted the claude-review branch February 15, 2026 22:07

This branch was previously deployed

1 inactive deployment
claude-review — be71f7af Deployed Feb 15, 2026 by max-sixty via review #3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant