Resolve trusted bare bot aliases canonically - #270
Conversation
|
Warning Review limit reached
Next review available in: 47 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Review: Resolve trusted bare bot aliases canonicallyOverviewThis PR fixes a real gap: GitHub's Copilot code-review integration exposes two identities sharing one global node ID — a bare Code quality
Test coverageGood coverage of the fail-closed paths: canonical match, canonical mismatch, lookup failure, missing node ID (asserting zero extra GraphQL calls), cache sharing across aliases, and the blank/null Documentation gap
Security
Minor observations
|
|
head_sha: 461b5b4
|
Why
GitHub exposes Copilot code review through two identities that share one global node ID: the pull request
participantsconnection returns a bare, User-shapedCopilotalias, while resolving that node canonically returns thecopilot-pull-request-reviewerBot. The existing suffix-only bot check cannot safely recognize the hidden participant alias, so strict preflight blocks even when maintainers intend to trust Copilot reviews.What changed
node(id:)querytrusted_bots[bot]-suffix pathSecurity notes
This does not add Copilot—or any actor—to the packaged trust defaults. Consumers must still make an explicit, narrow trust decision for both identities. The canonical Bot proof prevents a human login that merely matches an allowlisted bare name from inheriting bot trust.
Validation
ruby skills/pr-batch/bin/pr-security-preflight-test.rb— 108 runs, 913 assertions, 0 failuresbin/validate— PASS, including 106 Ruby files with no RuboCop offensesshakacode/react_on_rails#4804with both Copilot identities in candidate trust config —SECURITY_PREFLIGHT_OKgit diff --checkandgit show --check— cleanChurn and release notes
participants.__typenamecould prove Bot identity.deferred_to_update_changelog; record this user-visible trust behavior before the next Agent Workflows release.This is the upstream prerequisite for the React on Rails Copilot trust-policy update and unblocking react_on_rails#4804.