Skip to content

Allow Cursor bot to trigger Claude Code review#3

Merged
hookdump merged 1 commit into
mainfrom
fix/claude-review-allow-cursor-bot
Jun 3, 2026
Merged

Allow Cursor bot to trigger Claude Code review#3
hookdump merged 1 commit into
mainfrom
fix/claude-review-allow-cursor-bot

Conversation

@hookdump
Copy link
Copy Markdown
Contributor

@hookdump hookdump commented Jun 3, 2026

Summary

  • The Claude Code review workflow fails on Cursor-opened PRs with: Workflow initiated by non-human actor: cursor (type: Bot). Add bot to allowed_bots list or use '*' to allow all bots.
  • anthropics/claude-code-action@v1 runs a checkHumanActor step that rejects any non-User actor unless its name is in the allowed_bots input (default "" = no bots).
  • Fix: add an overridable allowed_bots workflow_call input (default "cursor") to the reusable workflow and pass it to the action.

Why cursor and not *

  • The action normalizes bot names (lowercase + strip trailing [bot]), so "cursor" matches the reported actor.
  • The action warns * is unsafe on public repos (external Apps could invoke with attacker-controlled prompts). This reusable workflow is shared org-wide, so we use a least-privilege named allow-list. Callers can override the input if needed.

Test plan

  • Open/sync a Cursor-authored PR in a repo using this reusable workflow and confirm the review job runs instead of failing the actor check.

Made with Cursor

claude-code-action@v1 rejects non-human (bot/App) actors unless they
are in allowed_bots, which defaulted to empty. Cursor-opened PRs were
blocked. Add an overridable allowed_bots workflow_call input defaulting
to "cursor" and pass it through to the action.

Co-authored-by: Cursor <cursoragent@cursor.com>
@hookdump hookdump merged commit 1c2ece6 into main Jun 3, 2026
1 check failed
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