Skip to content

Commit 3ed4851

Browse files
authored
ci: let the claude bot trigger the PR audit workflows (#4392)
## Summary PRs opened by the claude GitHub app fail both the agent instructions audit and the REVIEW.md drift audit before Claude gets a chance to run. `claude-code-action` refuses any actor whose account type is not `User` unless the actor is listed in `allowed_bots`: ``` Workflow initiated by non-human actor: claude (type: Bot). Add bot to allowed_bots list or use '*' to allow all bots. ``` So those PRs land with two permanently red checks and no audit coverage at all. Both workflows already allowlist Devin; this adds the claude app alongside it. ## Why this does not open the workflows up to outside contributors `allowed_bots` is only consulted for non-`User` actors. Humans, contributor or maintainer, take the separate write-permission path and are unaffected by what is in the list. Beyond that, both jobs are guarded by `github.event.pull_request.head.repo.full_name == github.repository`, so a fork PR skips the job entirely, and they trigger on `pull_request` rather than `pull_request_target`, so a fork-triggered run would get no API key and a read-only token anyway. The bot is named explicitly instead of using `"*"`, which would let every bot trigger these audits, dependabot's PR stream included.
1 parent fc57643 commit 3ed4851

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/check-review-md.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
4040
use_sticky_comment: true
41-
allowed_bots: "devin-ai-integration[bot]"
41+
allowed_bots: "devin-ai-integration[bot],claude[bot]"
4242

4343
claude_args: |
4444
--max-turns 30

.github/workflows/claude-md-audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
with:
4141
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
4242
use_sticky_comment: true
43-
allowed_bots: "devin-ai-integration[bot]"
43+
allowed_bots: "devin-ai-integration[bot],claude[bot]"
4444

4545
claude_args: |
4646
--max-turns 25

0 commit comments

Comments
 (0)