Skip to content

feat: Support triggering @claude from bot users (from ROADMAP) - #194

Closed
tomoish wants to merge 3 commits into
anthropics:mainfrom
tomoish:feat/allow-bot-triggers
Closed

tomoish wants to merge 3 commits into
anthropics:mainfrom
tomoish:feat/allow-bot-triggers

Conversation

@tomoish

@tomoish tomoish commented Jun 24, 2025 •

Copy link
Copy Markdown
Contributor

Summary

This PR implements the "Support triggering @claude from bot users" feature that was listed in our ROADMAP.md. Bot accounts (e.g., dependabot, renovate, github-actions) can now invoke Claude using the configured trigger phrase.

Closes #195

Changes Made

  • Removed human actor validation: Eliminated the checkHumanActor function that was blocking bot users from triggering Claude
  • Updated prepare workflow: Removed the human verification step from src/entrypoints/prepare.ts
  • Added comprehensive tests: Created test/bot-trigger-validation.test.ts
  • Updated documentation:
    • Marked the feature as completed (✅) in ROADMAP.md
    • Updated README.md to reflect bot user support
  • Cleanup: Removed unused src/github/validation/actor.ts file

ROADMAP Progress

This completes one of the key features from our path to v1.0. The ROADMAP.md has been updated to show this feature as completed with a checkmark emoji.

Security Considerations

Bot users still need write access to the repository to trigger Claude, maintaining the existing security model. The change only removes the artificial restriction on user type while preserving all other access controls.

- Remove human actor validation to allow bot users to trigger Claude
- Add comprehensive tests for bot user scenarios (dependabot, renovate, github-actions)
- Update documentation to reflect bot user support is now available
- Mark feature as completed in ROADMAP.md with checkmark emoji

This enables automation and bot accounts to invoke Claude, which is useful
for automated dependency updates, CI/CD workflows, and other bot-driven
processes.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@ashwin-ant

Copy link
Copy Markdown
Collaborator

@tomoish thanks for taking this on! I think we may want this to be an opt-in feature though, not something that happens by default. What do you think about an input like allowed_bots that can be either a list of bot names or * to allow all bots?

@ashwin-ant

Copy link
Copy Markdown
Collaborator

Something like #117, but just a bit more configurable maybe.

@tomoish

tomoish commented Jun 29, 2025

Copy link
Copy Markdown
Contributor Author

Thank you for your checking!
I'll introduce the option to configure allowed bots.

@hiragram

Copy link
Copy Markdown

Any update? Can't wait for this to come out!

tomoish and others added 2 commits July 29, 2025 00:25
Add allowed_bots configuration option to the inputs documentation table and usage example, enabling users to control which bot accounts can trigger the Claude action.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Integrated bot trigger functionality with main branch changes including:
- Added allowed_bots parameter alongside label_trigger
- Maintained bot validation logic with new mode system
- Preserved all new features from main (agent mode, OAuth tokens, etc.)
- Updated test files to include both features

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@km-anthropic

Copy link
Copy Markdown
Collaborator

@hiragram @tomoish this functionality should now be solved w/ Agent mode (example here). You can setup an agent automation (as a workflow dispatch) and bot actors should be able to trigger it.

@hiragram

Copy link
Copy Markdown

@km-anthropic Thank you for letting me know!

lroolle added a commit to thevibeworks/claude-code-action that referenced this pull request Aug 4, 2025
- Add allow_bot_actor parameter to enable GitHub bots to trigger Claude Code Action
- Implement robust bot write permission validation
- Add test coverage for bot scenarios
- Update documentation with security considerations

This enables automated workflows like documentation updates, CI-triggered
code reviews, and scheduled maintenance while maintaining security through
explicit opt-in and proper permission validation.

Relevant works: anthropics#388 anthropics#280 anthropics#194 anthropics#117
lroolle added a commit to thevibeworks/claude-code-action that referenced this pull request Aug 5, 2025
- Add allow_bot_actor parameter to enable GitHub bots to trigger Claude Code Action
- Implement robust bot write permission validation
- Add test coverage for bot scenarios
- Update documentation with security considerations

This enables automated workflows like documentation updates, CI-triggered
code reviews, and scheduled maintenance while maintaining security through
explicit opt-in and proper permission validation.

Relevant works: anthropics#388 anthropics#280 anthropics#194 anthropics#117
lroolle added a commit to thevibeworks/claude-code-action that referenced this pull request Aug 6, 2025
- Add allow_bot_actor parameter to enable GitHub bots to trigger Claude Code Action
- Implement robust bot write permission validation
- Add test coverage for bot scenarios
- Update documentation with security considerations

This enables automated workflows like documentation updates, CI-triggered
code reviews, and scheduled maintenance while maintaining security through
explicit opt-in and proper permission validation.

Relevant works: anthropics#388 anthropics#280 anthropics#194 anthropics#117
@tomoish tomoish closed this Aug 10, 2025
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.

feat: Support triggering @claude from bot users

4 participants