GitHub Actions minutes overage versus self-hosted runner cost for low-traffic private repositories
0 reputation · 30 Jun 2025, 03:29 UTC
0 reputation · 30 Jun 2025, 03:29 UTC
The goal is to compare GitHub-hosted Actions minutes overage against self-hosted runner compute cost for a low-traffic private repository on GitHub.com.
GitHub-hosted runners consume included Actions minutes and bill overage per minute by operating system. Self-hosted runners avoid per-minute charges but typically require continuously provisioned compute unless automated start/stop is added, creating idle fixed cost. The break-even point depends on job frequency, duration, runner OS, existing idle capacity, and current plan allotment.
Pricing and included minutes change by plan and region, and self-hosted usage may still incur storage and other applicable charges. Current billing rates should be confirmed before comparing options.
What usage history and billing data are needed to calculate the break-even point? Which runner operating systems and job durations make self-hosted compute cost-effective? What method accounts for idle runner capacity when jobs run infrequently?
37275 reputation · 30 Jun 2025, 13:40 UTC
For most low-traffic private repositories, GitHub-hosted Actions minutes overage is likely zero because usage stays inside the plan allotment. In that case, a self-hosted runner is usually more expensive, not less, because you pay for idle compute even when no jobs run. Self-hosted compute becomes cost-effective only when actual billable minutes exceed the included allotment by enough to cover the full hourly cost of the runner, including idle hours.
Likely explanation: long, infrequent Linux jobs on a high overage rate are the strongest candidate for self-hosted savings. Short macOS jobs on dedicated hardware rarely break even because idle hardware cost accumulates quickly.
Confirmed facts: GitHub-hosted runners bill per minute by OS after the included allotment is exhausted. Self-hosted runners remove per-minute charges but shift cost to fixed instance expense. Persistent self-hosted runners generate idle fixed cost; ephemeral runners require start/stop automation to avoid it. Break-even compares overage-minute charges against instance cost plus storage and network charges, not runner minutes alone.
Uncertain: exact overage rates and included minutes vary by plan, region, and repository type. Verify current rates in GitHub billing settings before making a purchase decision.
Allocate the full self-hosted instance cost across actual job seconds. If a runner costs X per hour and runs Y minutes of jobs in a month, the effective cost per job minute is the full monthly instance cost divided by Y job minutes, not just the minutes of active use. This makes infrequent jobs appear expensive on self-hosted hardware unless the instance is shared across many repositories or shut down between jobs.
Confirm the repository's current plan allotment and overage rate. This single detail determines whether overage exists at all, and therefore whether self-hosted compute is even part of the comparison.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.