fix(scheduler): scope Actions credentials by run host - #2002
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks 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 |
Baseline reproduction narrows #2005 failure ownershipIndependent clean-detached reproduction was completed against parent stack head Command: .venv/bin/python -m pytest tests/test_pr_review_merge_scheduler.py -q -k 'cancel_stale_opencode_runs_uses_bounded_executor_for_multiple_runs or force_cancel_failure_logs_reason_and_does_not_raise or force_cancel_multiple_runs_reports_only_failures or workflow_starting_credentials_allow_head_mutations' --tb=shortResult: 4 failed, 330 deselected / 13.60s / terminal 1. The same four failures already exist before #2005's target-Actions-inventory omission delta:
Therefore these four are parent-stack regressions, not caused by #2005's child-only inventory-suppression delta. This does not prove that the remaining 11 failures from #2005 hosted run Canonical repair request for #2002/#2003 owner lane:
No force push, source change, close, or safety-gate weakening is requested. |
Root cause
Central required-workflow inventory and force-cancellation were routed through the same cross-repository Actions credential used for target repositories. If the mutation App installation exhausted its independent API quota, the scheduler could not discover or cancel central current-head review runs even though the receiving workflow runner token had the required same-repository authority.
Historical owner PR #1231 contains this valid repair mixed with unrelated linter, SBOM, GPU, and mutation-credential changes on a branch 36 commits behind protected
main. This successor extracts only the independently verifiable host-scoped Actions credential boundary; #1231 remains open for complete delta reconciliation.RED → GREEN
8cc62ce8837e456dfac4f592bcbd0786a77e4b817bf3451a47768dbda903115a393b1da1d98e1dbadocs/product-technical-gap-baseline.mdAuthority and safety
main@c9052e607e5f3cc76e73207e7786b21500721b79