Repository navigation
Description
Context
Org GitHub Actions spending is capped at $0 (free private-repo minutes only, by design). The governed runner policy is already self-hosted-only, so private-repo required checks run on the self-hosted fleet and are unaffected. But jobs the selector treats as never-self-hosted-eligible — comment/review-event jobs (issue_comment, pull_request_review, pull_request_review_comment) — fall back to hosted runners and now fail at startup with "The job was not started because recent account payments have failed or your spending limit needs to be increased" whenever free minutes are exhausted. Observed live 2026-07-22 on medley's advisory resolve-on-comment jobs (comment-review-gate.yml): 0-step, ~2s startup failures polluting every PR's check list. Public repos are unaffected (unlimited free hosted minutes).
Proposed work
- Make comment/review-event jobs self-hosted-eligible in the select-runner reusable for private repos, OR provide a policy knob for it. Security review required: these events carry no untrusted checkout in the affected jobs (pure API calls), and all actors in private fleet repos are org members/trusted apps — validate that reasoning before widening eligibility.
- Port the consumer jobs' bare
ghinvocations to actions/github-script first (the Audit remaining gh-calling reusables for the bare-gh runner assumption (post-#144) #209 pattern) — the self-hosted image ships no gh CLI, so rerouting without porting reproduces the exit-127 defect class (fix(do-not-merge-gate): drop gh CLI dependency from label refetch #144). Known consumer: medley.github/workflows/comment-review-gate.yml(resolve jobs + create-or-resolve matrix job). - Sweep other private repos (github-iac, dotfiles, provisioning) for hosted-fallback event jobs with the same exposure.
Acceptance criteria
- No private-repo workflow job routes to a GitHub-hosted runner under the current policy (verified by a fleet run sweep after rollout)
- medley comment-review-gate jobs run green on self-hosted with zero runner-tool assumptions
- Billing-startup check failures no longer appear on private-repo PRs
References
- ci-workflows#209 / PR fix: audit and port bare-gh CLI shell invocations to github-script #212 (github-script port pattern); medley
docs/topics/cicd-fleet-audit/REPORT.mdTheme 1 (the exit-127 defect class) - Org constraint: $0 Actions budget is deliberate — reroute, never re-enable hosted spend
Activity
kyle-sexton commentedon Jul 22, 2026
Implementation note on scope: PR #224 does not make comment/review-event routing eligibility blanket. It adds an opt-in
admits-comment-eventsinput (defaultfalse) toselect-runner.yml, and only medley'scomment-review-gate.yml(medley#1632, verified zero checkout, pure API calls) is intended to set it once medley repins.Why not blanket: auditing fleet consumers of this selector surfaced medley's
.github/workflows/claude-assistant.yml, which also triggers onissue_comment/pull_request_review_comment, already calls this same selector, and checks out the repository + runs Claude withcontents: writeand commit signing. Under the currentself-hosted-onlypolicy that job is dormant today (comment events route hosted, so itsroute == 'self-hosted'gate never passes). Blanket-admitting the event classes -- the originally scoped approach -- would have flipped that dormant job live as a side effect: comment-triggered checkout + code execution + write perms on the self-hosted fleet, with no dedicated security review of that specific exposure.Explicitly recording:
claude-assistant.ymlis untouched by #224 and stays exactly as dormant as it is today. It would only ever become self-hosted-eligible via its own future, deliberate opt-in (settingadmits-comment-events: trueon its ownselect-runnercall) -- that is a separate decision requiring its own security review of checkout+write-on-fleet, not something this issue's fix does for it.🤖 Generated with Claude Code
feat(select-runner): admit issues event under generalized ancillary o…