Skip to main content
Running GitHub Actions without oversight can produce unexpectedly large bills — for example, unoptimized macOS builds on every commit can lead to invoices of tens of thousands per month. An administrator who can audit usage and apply controls can save the company a substantial amount each year. Start by exporting the GitHub billing usage CSV from your organization billing dashboard. Focus on these core columns: organization, repository_slug, date, product, sku, quantity, and price_per_unit. The sku column is the most important diagnostic: it identifies the exact resource consuming budget (for example, Actions Linux, Actions Windows, Actions macOS, Packages Storage, or Codespaces Linux). quantity shows minutes or gigabytes used, and price_per_unit indicates whether you’ve exceeded free tiers and are paying overages.
Once you have this data, apply the six major levers below to optimize spending and prevent recurring leaks.
  1. Dormant seats
  • Export the active license list from your GitHub billing dashboard.
  • Compare it to your identity provider’s active employee directory (a scheduled script or spreadsheet VLOOKUP works well).
  • Any mismatches typically indicate licenses assigned to departed or inactive users — reclaim those seats to reduce recurring license costs.
A slide titled "Six Levers – Optimize Spending" showing a workflow to find dormant seats by comparing a billing dashboard's list of active licenses with an identity provider's list of active employees. The graphic shows usernames (e.g., jsmith, mchen) with checkmarks for matches and "not found" markers for unmatched licenses.
Automate this comparison on a schedule (daily or weekly) to quickly detect stale accounts and reclaim dormant seats before they continue to incur costs.
  1. Machine accounts
  • Ensure CI bots and service accounts are configured as machine accounts (GitHub Apps, service principals, or other non-seat-consuming identities) instead of using standard user seats or Advanced Security committer licenses.
  • This reduces license attribution and centralizes credentials and permissions for automated processes.
  1. Outside collaborators (nuance)
  • Outside collaborators are not organization members and typically do not consume paid organization seats when granted access to private repositories; they can be a cost-effective way to grant access to external contributors.
  • Internal repositories cannot include outside collaborators — they require organization or enterprise members.
  • Audit private repositories for unnecessary external access. For high-activity external contributors who need centralized controls or paid features, consider converting them to organization members.
  1. macOS and Windows runners
  • macOS and Windows GitHub-hosted runners cost more per minute than Linux:
    • macOS: ~10× Linux per-minute rate
    • Windows: ~2× Linux per-minute rate
  • If your usage report shows high Actions macOS or Actions Windows quantities:
    • Restrict macOS/Windows workflows to protected branches (e.g., main) or to PRs that target main.
    • Consider moving suitable jobs to self-hosted runners (no per-minute GitHub-hosted charges).
A presentation slide titled "Six Levers – Optimize Spending" listing levers like dormant seats, machine accounts, outside collaborators, and macOS/Windows overruns. To the right is a billing table showing Actions usage with Linux 1×, macOS 10× and Windows 2× multipliers and corresponding usage numbers.
  1. GitHub Advanced Security seats
  • If inactive repositories have GitHub Advanced Security enabled, archive them. Archiving freezes changes and halts active development.
  • Depending on GitHub’s license-seat attribution rules, archiving and persistent inactivity may result in Advanced Security committer seats no longer being attributed after a retention period (commonly ~90 days). Verify current behavior in the documentation and your billing settings.
  1. Dependency caching
  • Cache dependencies to reduce repeated installs and dramatically speed up builds. This often reduces run minutes for subsequent jobs by a large percentage, directly lowering monthly usage.
  • Example npm cache step (place inside job -> steps in .github/workflows/ci.yml):
Quick reference: SKU multipliers and cost-driving resources Exam / Summary facts to remember
  • macOS runners cost roughly 10× more per-minute than Linux; Windows runners roughly 2× more.
  • Archive inactive repositories to freeze changes; depending on billing attribution rules, Advanced Security seats may be reclaimed after a period of inactivity (commonly ~90 days). Confirm current rules in the GitHub docs.
  • Outside collaborators added to public repositories do not consume paid seats. Outside collaborators are generally not billed as organization members when granted access to private repositories, but internal repositories cannot have outside collaborators.
Unmonitored CI and Codespaces consumption can create runaway monthly costs. Regularly export usage reports, schedule automated audits (seats, runners, collaborators), and apply caching and self-hosted runners where appropriate.
Links and references By exporting usage data, identifying the SKUs driving cost, and applying the six levers above, you can significantly reduce GitHub billing surprises and optimize ongoing spending.

Watch Video