NO-ISSUE: grant pull-requests:write to ok-to-test-label-cleanup caller - #357
NO-ISSUE: grant pull-requests:write to ok-to-test-label-cleanup caller#357eliorerz wants to merge 1 commit into
Conversation
The reusable workflow (osac-test-infra's ok-to-test-label-cleanup.yml) needs pull-requests:write to remove the label and comment, but this caller granted no permissions at all, so the token was implicitly restricted to 'none'. GitHub refuses to start a job that calls a reusable workflow requesting more permission than the caller has: The nested job 'remove-label' is requesting 'pull-requests: write', but is only allowed 'pull-requests: none'. This has been failing with startup_failure on every run since at least 2026-07-14, identically across every repo that calls this workflow.
|
@eliorerz: This pull request explicitly references no jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eliorerz The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Warning Review limit reached
Next review available in: 28 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: Repository: osac-project/coderabbit/.coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (1)
✨ 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 |
Summary
The
ok-to-test-label-cleanup.ymlcaller in this repo has been failing withstartup_failureon every run since at least 2026-07-14 — identically across every repo that calls this reusable workflow (fulfillment-service,osac-operator,osac-aap,osac-installer).Root cause
The reusable workflow (
osac-project/osac-test-infra/.github/workflows/ok-to-test-label-cleanup.yml) declarespermissions: pull-requests: writeat its job level — it needs that to remove the label and post a comment. This caller granted no permissions at all, so itsGITHUB_TOKENwas implicitly restricted tonone. GitHub refuses to start a job that calls a reusable workflow requesting more permission than the caller itself has:Fix
Explicitly grant
pull-requests: writeon the calling job, so that scope is available to hand down to the reusable workflow.Impact
Not a required status check, so this wasn't blocking merges — but it silently defeats the fork-PR safety net this workflow exists for: new commits on an already-
ok-to-test-approved fork PR should force a re-approval, and that reset hasn't been happening.