Skip to content

ci(ub-review): skip advisory review lane on fork PRs (#1738) - #1866

Merged
EffortlessSteven merged 1 commit into
mainfrom
codex/ub-review-fork-guard-1738
Jul 19, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
codex/ub-review-fork-guard-1738

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

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:

if: github.event.pull_request.head.repo.full_name == github.repository

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.

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.
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@EffortlessSteven, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 15 seconds

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: c0c978e0-1760-4f3b-9d7f-42018fbde7b3

📥 Commits

Reviewing files that changed from the base of the PR and between bbe7cbc and 9c7a82d.

📒 Files selected for processing (1)
  • .github/workflows/ub-review.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/ub-review-fork-guard-1738

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-error step 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-level if: expression; no uses:, no SHAs, no runs-on, no setup steps are added or removed. Pinning posture is unchanged. actionlint reports ok.
  • The condition uses the wrong context key and would not actually skip fork PRs.; refuted because: github.event.pull_request.head.repo.full_name returns <fork-owner>/<repo> and github.repository returns <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.

@EffortlessSteven
EffortlessSteven merged commit 96e8039 into main Jul 19, 2026
23 of 24 checks passed
@EffortlessSteven
EffortlessSteven deleted the codex/ub-review-fork-guard-1738 branch July 19, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant