Repository navigation
ci(ub-review): skip advisory review lane on fork PRs (#1738) - #1866
Conversation
Add an explicit if: guard so ub-review skips on fork PRs (where secrets are unavailable) instead of running and failing to authenticate. The deterministic core gate (ci.yml) still runs on fork PRs. Proof: one-line if-guard addition, no code change.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 15 seconds 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: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- No explicit skip-log step or job-output message is emitted on fork PRs; users will see a silently skipped advisory lane with no diagnostic. Consider a
continue-on-errorstep or outputs flag for visibility. Not a correctness issue.
Verification questions
- Confirm actionlint sensor ran ok; artifact-verifier failed with exit 2 — verify failure is unrelated to the fork-guard line and not a permissions regression in this diff.
- Confirm pR body quotes MINIMAX_API_KEY as the secret gating auth; only reviewers with repo access can verify whether additional secrets (e.g. GH_TOKEN, MODEL_TOKEN) are referenced and similarly absent on forks.
Refuted
- Fork PRs running ub-review could leak MINIMAX_API_KEY via secret references; refuted because: Workflow does not reference MINIMAX_API_KEY in env at job level on forks; however, fork runs would still attempt to evaluate steps. The added if-condition prevents the job from scheduling entirely on forks, eliminating any secret-access path. Objection refuted by diff.
- Adding the fork-PR
if:guard could regress action pinning or runner setup; refuted because: Patch only inserts a job-levelif:expression; nouses:, no SHAs, noruns-on, no setup steps are added or removed. Pinning posture is unchanged. actionlint reportsok. - The condition uses the wrong context key and would not actually skip fork PRs.; refuted because:
github.event.pull_request.head.repo.full_namereturns<fork-owner>/<repo>andgithub.repositoryreturns<owner>/<repo>; they match only for same-repo PRs, which is the exact intent. actionlint passed.
Evidence gaps
- artifact-verifier failed with exit code 2; impact on this diff is non-blocking because no artifacts are produced by the new conditional path and prior ub-review runs had no actionable signal here.
Summary
Add an explicit fork-PR guard to ub-review.yml so the advisory LLM review lane skips cleanly on fork PRs (where secrets are unavailable) instead of running and failing to authenticate.
Change
One line added to the ub-review job:
The deterministic core gate (ci.yml) still runs on fork PRs.
Why
Fork PRs can't access the MINIMAX_API_KEY secret, so ub-review runs and fails confusingly. An explicit guard gives a clean skip instead of an authentication failure.