MSBA-290 · Lesson 10 of 12 · 24 min
Billing and licensing
▶ Video coming soon A video version of this lesson is on the way.
Skerry's finance partner for technology, Lorcan Adeyemi-Brooke, joined the tenth session with a single slide showing what the company had paid GitHub the previous year: three credit cards for Team plans, one invoice for the old enterprise, a separate renewal for the Server appliance, and Actions overages nobody had approved. "I do not need to understand Git," he said. "I need one bill, a forecast I can believe, and to know which department to charge." The GH-100 study guide puts licensing and billing models, licence monitoring and cost optimization in two different domains, which tells you how often administrators get asked about money.
What a GitHub Enterprise licence covers
A GitHub Enterprise licence is assigned per unique user, not per organization or per repository. One licence covers a person wherever they work in the enterprise: in any number of organizations on Enterprise Cloud, and on Enterprise Server too when licence use is synchronized through GitHub Connect, so that someone who uses both is counted once. The licence includes the platform itself and a monthly allowance of some metered resources, such as Actions minutes and Packages storage for private repositories; anything beyond the allowance, and several separate products, is billed on top.
Broadly, anyone with access to the enterprise's private or internal resources consumes a licence: owners and members of its organizations, outside collaborators on private or internal repositories in an enterprise with personal accounts, and guest collaborators in a managed users enterprise. Pending invitations do not consume a licence until they are accepted. Suspended managed users do not consume one either, which is another reason deprovisioning through the IdP matters.
Two ways to pay for licences
GitHub sells Enterprise licences in two models. Under volume licensing, the customer commits to a number of licences for a term, usually a year, and pays for that number whether or not all are used. Under usage-based billing, the customer pays monthly for the licences actually used. Enterprises that started an Enterprise Cloud trial on or after August 1, 2024 are on usage-based billing automatically. Customers who pay by invoice under a volume, subscription or prepaid agreement stay on that model until it expires and can choose metered billing at renewal.
Usage-based billing distinguishes two numbers. Consumed licences are those in use at a given moment. Billable licences are the unique licences used at any point in a billing cycle. If someone is removed partway through a month, they still count for that month and drop off the next bill; someone who starts partway through a month is charged for the part of the month they were there.
Worked problem
Reading a usage-based bill
In October, Skerry's new enterprise starts with 400 managed users. On October 12 another 300 are provisioned from the commerce group, and on October 25, 40 leavers are deprovisioned. How many consumed licences are there at the end of October, and how many are billable for October?
Show solution
- Consumed at month end: 400 + 300 - 40 = 660.
- Billable for the cycle: every unique user who held a licence during October, 400 + 300 = 700.
- Proration means the 300 added on October 12 are charged only for the part of the month they held a licence.
- The 40 leavers drop off the November bill.
Answer: 660 consumed at month end and 700 billable for October, with the October additions prorated.
Visual Studio subscriptions and Server
Many large companies buy GitHub Enterprise bundled with Visual Studio subscriptions from Microsoft. Bundled licences stay on a volume agreement. Usage-based billing applies only to GitHub Enterprise licences that are not bundled: members who are not matched to a Visual Studio subscriber, and any use beyond the licences purchased in the volume agreement. Matching matters. Before switching models, administrators should match Visual Studio subscribers to their GitHub accounts and add them to the enterprise on Enterprise Cloud before adding them to Server; users who exist only on Server consume a separate GitHub Enterprise licence. GitHub describes usage-based licensing as a cloud-first model for this reason.
Metered products
On top of licences, several things are metered: billed by how much is used rather than per seat.
| Product or resource | How it is charged | Who decides how much is used |
|---|---|---|
| GitHub Actions minutes and storage beyond the included allowance | Per minute by runner type and per gigabyte of storage | Workflow authors and their choice of runners |
| Larger GitHub-hosted runners | Per minute, at higher rates than standard runners | Teams that select them in workflows |
| Codespaces | Compute per hour by machine type, and storage | Developers who create codespaces, within policy |
| GitHub Packages storage and data transfer beyond the allowance | Per gigabyte | Teams that publish packages |
| GitHub Secret Protection and GitHub Code Security | Per active committer | Which repositories have them enabled |
| GitHub Copilot | Per seat for Copilot Business or Enterprise, or included with GitHub Enterprise for some customers, plus metered AI usage | Who is given access, and how much they use features that consume budget |
GitHub Advanced Security was split in April 2025 into two products, GitHub Secret Protection and GitHub Code Security, each billed per active committer: a person who committed to a repository with the product enabled during the billing period. A committer to several such repositories counts once. Enabling Code Security on a seldom-touched repository costs little; enabling it on the busiest monorepo makes almost every developer billable.
Copilot billing changed again in October 2026. Enterprises that work with a GitHub or Microsoft account team can now have Copilot included with GitHub Enterprise for every licensed user on Enterprise Cloud, with AI usage metered from the first request against an enterprise budget rather than through per-seat allowances. Code completion and next edit suggestions keep working even when no budget is available, while features such as Copilot Chat and Copilot code review need budget. Self-serve customers will get the option in stages, Copilot Business and Copilot Enterprise remain available, and users in an enterprise account who do not have a GitHub Enterprise licence can be given Copilot Standalone. MSBA-303 covers Copilot itself; for billing, the point is that Copilot spend is now largely a question of budgets.
Cost centres and budgets
Lorcan's other request, knowing which department to charge, is what cost centres are for. On GitHub's billing platform an enterprise owner or billing manager creates cost centres and assigns resources to them: organizations, repositories or users. Usage from those resources is reported against the cost centre, so the stores group's Actions minutes and Codespaces hours appear on the stores group's line, and finance can charge them back. In July 2026 GitHub added per-user budgets for cost centres to the billing interface.
Budgets set a spending limit for a metered product at the enterprise, organization, repository or cost centre level, with alerts as spending approaches it. A budget can either stop further usage when reached or only alert, depending on the product and the setting chosen. Without budgets, a misconfigured workflow that loops overnight on a large runner can produce a surprising bill; with them, the overspend stops or someone is told.
Worked problem
Setting up chargeback
Skerry wants each product group charged for its own Actions, Codespaces and Copilot usage, with the platform team's shared tooling charged to IT. The stores group has its own organization; commerce and data share the skerry organization. How should cost centres be arranged?
Show solution
- Create a cost centre for stores and assign the skerry-stores organization to it.
- Commerce and data share an organization, so assign their repositories, or for Copilot their users, to separate cost centres.
- Create an IT cost centre for the platform team's repositories and users.
- Set a budget with alerts on each cost centre for Actions and Codespaces.
Answer: One cost centre per product group plus IT, assigned by organization where possible and by repository or user inside the shared organization, each with budgets.
Monitoring licence use
The enterprise settings show licence consumption, with a downloadable list of who holds a licence and why, and usage reports for metered products. The REST API exposes the same data for dashboards. Two reports matter most for optimization. The dormant users report lists accounts with no recent activity; in a personal-account enterprise they are candidates for removal, and in a managed users enterprise a dormant account usually means the IdP still assigns GitHub to someone who no longer needs it. The metered usage report shows which organizations, repositories and workflows drive Actions and Codespaces costs.
| Signal | Likely cause | Optimization |
|---|---|---|
| Many dormant licensed users | Access assigned by default to whole departments | Assign the GitHub app in the IdP only to groups that need it |
| Actions minutes concentrated in a few repositories | Workflows running on every push or with long test matrices | Path filters, caching, concurrency limits and smaller matrices |
| Larger runners used for small jobs | Copied workflow templates | Default to standard runners; reserve larger ones |
| Code Security active committers rising | Enabled on busy repositories without a plan | Enable where risk justifies it and review quarterly |
| Codespaces storage growing | Idle codespaces left running or retained | Shorter idle timeout and retention policies |
Worked problem
Estimating the licence saving
The old setup had 1,240 licensed accounts across four bills, including 9 leavers, 7 automation accounts and about 150 people in finance and marketing who had been added to read a single wiki. In the new enterprise, automation moves to GitHub Apps, leavers are suspended by SCIM, and the wiki moves to the company intranet. Roughly how many licences remain?
Show solution
- Start with 1,240.
- Remove 9 leavers and 7 automation accounts: 1,240 - 16 = 1,224.
- Remove about 150 wiki readers: about 1,074.
- Apps and suspended users do not consume licences.
Answer: About 1,074 licences, roughly 13 percent fewer than before.
Forecasting
Finance wants a forecast, and a GitHub bill has three parts that behave differently. Licences track headcount, which HR can forecast. Security products track active committers, which follow the number of developers in enabled repositories. Metered usage tracks engineering behaviour, which changes when a team adopts a new test suite or a new runner type. Lorcan agreed to a monthly review: the platform team would explain any metered line that moved by more than ten percent, and budgets would catch anything sudden in between.
Who can see and change billing
Billing access follows the roles from lesson 6. Enterprise owners can see and change everything, including payment methods and budgets. Billing managers can manage billing settings, licences, cost centres and budgets without any access to organizations or code, which made the role the obvious choice for Lorcan and one colleague in finance. Organization owners see usage for their own organization. Keeping billing with billing managers means finance can act on spending alerts without waiting for a platform engineer, and platform engineers do not need access to invoices and payment details.
Worked problem
Responding to a budget alert
At 02:00 a budget alert fires: the iOS cost centre has used 90 percent of its monthly Actions budget in nine days. Who should act, and what are the first checks?
Show solution
- The alert goes to the billing managers and the platform on-call engineer.
- The engineer checks the usage report for the cost centre to find which repository and workflow drove the minutes.
- A workflow running in a loop or on an unexpectedly large runner is cancelled and fixed.
- Finance decides whether to raise the budget for the rest of the month once the cause is known.
Answer: The on-call engineer finds and stops the cause using the usage report; finance then decides on the budget.
Free and paid usage on Enterprise Server
Enterprise Server changes part of the cost picture. There are no GitHub-hosted runner minutes or Codespaces on Server, because workflows run on self-hosted runners that the customer pays for in its own infrastructure. Storage for repositories, packages and artifacts is the appliance's own disk. The licence is still a GitHub Enterprise licence, so the main GitHub charge for Server is the number of licensed users, while compute and storage costs move into the customer's data centre or cloud bill. When comparing Cloud and Server on cost, Lorcan insisted on including those infrastructure and staff costs, which made the old appliance look considerably more expensive than its renewal invoice suggested.
Common mistakes
MistakeCounting licences per organization.
InsteadLicences are per unique user across the enterprise, and across Server with licence sync.
MistakeExpecting a user removed mid-month to vanish from that month's bill.
InsteadThey remain billable for the cycle and drop off the next one.
MistakeEnabling Code Security everywhere without checking active committers.
InsteadEstimate committers per repository first; enable where risk justifies it.
MistakeRunning metered products without budgets.
InsteadSet budgets with alerts or limits at the right level.
Summary and key terms
- GitHub Enterprise licences are per unique user and cover Cloud and, with licence sync, Server.
- Volume licensing commits to a number; usage-based billing charges monthly for billable licences, with proration.
- Consumed licences are in use now; billable licences are unique users during the cycle.
- Visual Studio bundles stay on volume agreements; match subscribers to accounts before adding them to Server.
- Actions, Codespaces, Packages, Secret Protection, Code Security and Copilot usage are metered or billed separately.
- Cost centres support chargeback and budgets prevent surprises; dormant user and usage reports drive optimization.
- Volume licensing
- Committing to a number of licences for a term.
- Usage-based billing
- Paying monthly for the licences and resources actually used.
- Consumed licence
- A licence in use at a given moment.
- Billable licence
- A unique licence used at any time during a billing cycle.
- Active committer
- A person who committed to a repository with a security product enabled during the billing period.
- Cost centre
- A billing grouping of organizations, repositories or users used for chargeback.
- Budget
- A spending limit with alerts for a metered product.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Do pending invitations consume a licence?
Show answer
No, not until they are accepted.
Which enterprises were placed on usage-based billing automatically?
Show answer
Those that started an Enterprise Cloud trial on or after August 1, 2024.
What is the difference between a cost centre and a budget?
Show answer
A cost centre groups usage for reporting and chargeback; a budget limits or alerts on spending.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.