feat(budget): schedule the Actions budget watchdog from a public runner - #43
Merged
Conversation
Standard runners are free in public repositories, so the watchdog never consumes the budget it watches. That matters more than usual here: a watchdog costing private minutes would be adding to the problem exactly when the problem is worst. The alert lands in this repo rather than in the offending one, because the budget is an org-level fact and, once it is exhausted, the private repos are precisely the ones that cannot run anything. Cadence is four times a day at an offset minute rather than on the hour. GitHub throttles schedules hard in this org -- four to seven runs per repo per day regardless of the declared cron -- and deprioritises the congested boundaries first; every schedule in this estate that fires reliably sits off them. For a budget check a handful of runs a day is ample, which is why this is scheduled at all where issue boarding could not be. All five alert labels were checked to exist in this repo before wiring them up; gh issue create fails outright on an unknown label, which would turn the alert into a silent no-op at the one moment it matters. Refs JorisJonkers-dev/github-workflows#126
This was referenced Aug 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to JorisJonkers-dev/github-workflows#128 (merged), which added the reusable watchdog.
Why here
Standard runners are free in public repos, so the watchdog never consumes the budget it watches. That matters more than usual for this one — a watchdog costing private minutes would be adding to the problem exactly when the problem is worst.
The alert lands in this repo rather than the offending one: the budget is an org-level fact, and once it is exhausted the private repos are precisely the ones that cannot run anything.
What it will report on its first run
Verified against live billing data:
So it will go red immediately and file an alert — correctly. The org is past its included allowance for August, which is why a monetary budget was added.
Cadence
Four times a day at
41 */6 * * *— an offset minute, not on the hour. GitHub throttles schedules hard in this org (4–7 runs per repo per day regardless of declared cron, see #42) and deprioritises the congested boundaries first; every schedule in this estate that fires reliably sits off them.For a budget check a handful of runs a day is ample — which is why this is worth scheduling at all, where issue boarding was not. It cannot promise to warn within minutes of a crossing, and the workflow comment says so rather than implying otherwise.
Labels
All five alert labels were checked to exist in this repo before wiring them up.
gh issue createfails outright on an unknown label, which would turn the alert into a silent no-op at the one moment it matters.