This repository implements strict access controls for Claude AI agents to protect private code and maintain security.
✅ Authorized Access:
- Repository owner's PRs automatically get Claude review
- Repository owner can add
claude-approvedlabel to any PR to enable Claude review - Repository owner can comment
/claude-reviewon any PR to trigger manual review - Repository owner can use
@claudementions in issues and comments
❌ Blocked Access:
- External contributors cannot trigger Claude agents directly
- Forks cannot inherit Claude agent access
- No automatic Claude review for external PRs without explicit approval
# claude-secure-review.yml triggers on:
- pull_request from repository owner
- Automatic security check passes
- Claude review runs with full collaborative agent access# Repository owner can enable review by:
- Adding "claude-approved" label to PR
- Security check validates label and owner approval
- Claude review runs with security notice# Repository owner can trigger by:
- Commenting "/claude-review" on any PR
- Security check validates owner identity
- Claude review runs immediatelyclaude-secure-review.yml- Main secure workflow with owner-only accessclaude.yml- Updated to owner-only for @claude mentionsclaude-code-review.yml- Disabled (manual trigger only)
- Identity Verification:
github.actor == github.repository_owner - Event Validation: Checks PR author and approval labels
- Security Notifications: Clear messages about access restrictions
- Audit Trail: All Claude agent access logged in workflow runs
Enable Claude Review:
# For your own PRs - automatic
# For external PRs - add label
gh pr edit <PR_NUMBER> --add-label "claude-approved"
# Manual trigger - comment on PR
/claude-reviewMonitor Access:
- Check Actions tab for security notifications
- Review workflow logs for unauthorized attempts
- Remove
claude-approvedlabel to revoke access
Claude agent access is restricted for security. The repository owner can enable review by:
- Adding the
claude-approvedlabel to your PR - Using the
/claude-reviewcomment trigger - Your PR will receive collaborative agent review once approved
This ensures private code remains secure while maintaining the benefits of AI-assisted code review for approved contributions.