Repository navigation
fix(claude-lanes): gate bot actors on PR author association - #456
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Claude finished @kyle-sexton's task in 4m 1s —— View job Code Review Complete
No blocking findings. This is a well-scoped, correctly-implemented defence-in-depth guard. What I checked
Not run
|
|
Claude finished @kyle-sexton's task in 3m 20s —— View job Security review —
|
Add job-level defence-in-depth (#443): when github.actor ends with [bot], allow dependabot[bot] unconditionally; otherwise require pull_request author_association OWNER, MEMBER, or COLLABORATOR. Human actors unchanged. Covers both review lanes (retry shares the same job if). Document in SECURITY MODEL comments and pin with contract tests. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
6685f01 to
b85bc3c
Compare
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
Summary
Adds a job-level defence-in-depth guard (#443) on both Claude review lanes: when
github.actorends with[bot], the job runs only if the actor isdependabot[bot]or the PR author'sauthor_associationisOWNER,MEMBER, orCOLLABORATOR. Human actors are unchanged.Fix
review/security-reviewjobif:clauses inclaude-review.ymlandclaude-security-review.yml.dependabot[bot]so org Dependabot PRs (which may carryCONTRIBUTORorNONE) are not regressed.pull_requestevents (like the draft/fork gates) because dispatch payloads carry noauthor_association.Verification
node --test .github/scripts/claude-lane-bot-association.test.cjs .github/scripts/claude-security-review-fail-closed.test.cjs— pass (25 tests)actionlint— not available in this environmentRelated
Closes #443