Actions cost allocation
The invoice says minutes. Your teams need dollars.
Short answer
GitHub Actions cost allocation means assigning every billed minute to the team that ran it. In an enterprise account, GitHub's cost centers do part of it natively: Actions usage is charged to the cost center holding the repository or organization where the workflow ran. Anything finer — shared repositories, monorepos, per-workflow cost — you still build from the usage report.
Updated
What GitHub's cost centers allocate, and where they stop
GitHub's native allocation tool is the cost center, under your enterprise's Billing and licensing → Cost centers. For usage-based products like Actions, a cost center is charged for the repositories or organizations it contains, because that's where the workflow ran. Who triggered the run doesn't matter.
That works if your organizations already match your budgets. It stops at three limits. A resource belongs to only one cost center at a time, so a monorepo six teams share lands on one of them. Changes apply to future usage only. And anything unassigned shows up as Enterprise Only when you group the Usage page by cost center.
Where the per-workflow numbers live
Insights → Actions Usage Metrics, at organization or repository level, breaks minutes down by workflow, job, repository, runtime OS and runner type, with CSV export. It reports minutes, not dollars.
For dollars, open Settings → Billing & Licensing → Usage → Metered usage and click Get usage report. The detailed usage report adds a workflow path and username to every SKU line, but covers at most 31 days and is web-only. The REST endpoint GET /organizations/{org}/settings/billing/usage returns the summarized view, without workflow paths.
The allocation chain
Four hops, each of which can break:
- Job → workflow
- Direct, from run data and the detailed usage report. The hop GitHub gives you most cleanly.
- Workflow → repository
- Also direct. Together these two answer 'which pipelines are expensive', which is where optimisation starts.
- Repository → team
- The hop that breaks. It needs a maintained ownership map, not one inferred from who last committed. Ownerless repositories are the biggest source of unallocated cost.
- Team → cost center
- A finance mapping, usually stable. If you use GitHub cost centers, keep them aligned with it so allocation and chargeback agree.
Allocate cost, not minutes
Minutes aren't fungible. GitHub-hosted runners bill per minute by OS and size: $0.006 for Linux 2-core, $0.010 for Windows 2-core, $0.062 for macOS 3- or 4-core, and every job rounds up to the whole minute. Included usage is a dollar amount, not a minute count — $300 a month on GitHub Enterprise Cloud, about 50,000 standard Linux minutes.
So a team running a Linux matrix can use ten times the minutes of a team running a few macOS builds and still cost slightly less. Apply the rate at the job level before you aggregate. Self-hosted runners are free on the GitHub bill, so their real cost sits on your cloud invoice and any per-team figure for them is an estimate.
Shared, ambiguous, and monorepo cases
Every allocation model meets three awkward cases. Shared infrastructure repos — the deploy pipeline everyone triggers. Monorepos, owned by six teams but assignable to one cost center. Orphans, where the owner left and nobody claimed it.
Allocate what you can cleanly and leave the rest visible as unallocated, rather than smearing it across teams with a formula nobody agreed to. An unallocated bucket that shrinks quarter over quarter is a healthy signal. A tidy allocation built on an invented split rule gets disputed the first time it costs someone.
Showback before chargeback
Showback is publishing each team's number. Chargeback is moving it onto their budget. Skip straight to chargeback and the first month's wrong numbers start an argument about your methodology rather than their pipelines. Run showback until teams stop disputing the numbers — usually a quarter.
FinOpsAid keeps the job-to-team chain in a versioned warehouse, applies runner rates before it aggregates, and labels self-hosted runner cost as an estimate modeled from your own infra rates.
What FinOpsAid doesn't do
- It doesn't price self-hosted runners from GitHub data, because GitHub doesn't bill them — runner cost is modeled from the infrastructure rates you enter, and labelled an estimate.
- It doesn't cancel, re-route or speed up workflows; it's read-only and doesn't replace a runner provider.
- It doesn't show same-day Actions spend: billed usage arrives from GitHub's billing API with a lag of a few days.
FAQ
Frequently asked questions
Can GitHub show Actions cost per team?
Partly. In an enterprise account, cost centers charge Actions usage to the repository or organization where each workflow ran, so a team that owns whole repositories or organizations gets a native number. Teams sharing a repository don't, because a resource belongs to one cost center at a time. That split you build yourself, from the detailed usage report.
How do GitHub cost centers allocate Actions costs?
By repository or organization. Add a repository or organization to a cost center and its Actions usage is charged there from that point on — never retroactively. Who triggered the workflow doesn't matter. Unassigned usage appears as Enterprise Only when you group the Usage page by cost center, and the detailed usage report shows each line's cost center name.
How do I monitor GitHub Actions minutes and self-hosted runner costs?
Use Insights → Actions Usage Metrics for minutes by workflow, job, repository, OS and runner type, and the Metered usage page's detailed report for billed dollars per workflow path. Self-hosted runner cost isn't on either: GitHub doesn't bill those minutes, so the real cost is on your cloud invoice and can only be modeled as an estimate.
Should we allocate Actions minutes or Actions cost?
Cost. GitHub-hosted runners bill at different per-minute rates — $0.006 for Linux 2-core, $0.010 for Windows 2-core, $0.062 for macOS — so a team running macOS builds can use far fewer minutes than a team running Linux matrices and cost more. Aggregating raw minutes misattributes spend in favour of the expensive runners.
How do we handle monorepos and shared pipelines?
Leave them visible as unallocated rather than splitting them with a rule nobody agreed to. GitHub's cost centers can't help here, since a repository belongs to one cost center at a time. A clearly labelled unallocated bucket that shrinks over time is more credible than a complete allocation built on an invented formula.
What's the difference between showback and chargeback?
Showback publishes each team's cost without moving money; chargeback transfers it onto their budget. Run showback first, for at least a quarter. The early numbers will be wrong because repository ownership maps are always stale, and disputes during showback are how that map gets fixed before real money depends on it.
Try it
See these numbers for your own org
Connect your organization read-only and FinOpsAid meters it nightly — seats, credits, minutes, Codespaces and storage, attributed to teams and reconciled against your billing API. Every modeled figure is labelled an estimate, with the date it was computed.