Managing your spending limit for GitHub Actions

You can set a spending limit for GitHub Actions usage.

GitHub Actions is available with GitHub Free, GitHub Pro, GitHub Free for organizations, GitHub Team, GitHub Enterprise Cloud, GitHub Enterprise Server, and GitHub One. GitHub Actions is not available for private repositories owned by accounts using legacy per-repository plans. For more information, see "GitHub's products."

In this article

Did this doc help you?

About spending limits for GitHub Actions

GitHub Actions usage is free for public repositories and self-hosted runners. For private repositories, each GitHub account receives a certain amount of free minutes and storage, depending on the product used with the account. By default, your account will have a spending limit of $0, which prevents additional usage of minutes or storage after you reach these limits. If you increase your spending limit above the default of $0, you will be billed for any minutes or storage beyond the limits, also called overages. GitHub charges usage to the account that owns the repository where the workflow is run. Any coupons on your account do not apply to GitHub Actions overages.

You can set a higher spending limit or, for some accounts, allow unlimited spending. If you pay for your organization or enterprise account by invoice, you can prepay for overages to set a higher spending limit. The spending limit applies to your combined overages for GitHub Actions and GitHub Packages. For more information about pricing for GitHub Actions usage, see "About billing for GitHub Actions."

As soon as you set a spending limit above $0, you will be responsible for any overages that occurred in the past. For example, if your organization uses GitHub Team, does not allow overages, and creates workflow artifacts that increase your storage usage for the month from 1.9GB to 2.1GB, you will use slightly more storage than the 2GB your product includes.

Because you have not enabled overages, your next attempt to publish a version of the package will fail. You will not receive a bill for the 0.1GB overage that month. However, if you enable overages in a future month, your first bill will include the 0.1GB of overage from the past in addition to any overages for the current billing cycle.

Managing the spending limit for GitHub Actions for your user account

Anyone can manage the spending limit for GitHub Actions for their own user account.

  1. In the upper-right corner of any page, click your profile photo, then click Settings.
    Settings icon in the user bar
  2. In your user settings sidebar, click Billing.
    Billing settings
  3. Under "Billing", click Cost management.
    Cost management tab
  4. Under "Monthly spending limit", choose to limit spending or allow unlimited spending.
    Radio buttons to limit spending or allow unlimited spending
  5. If you chose to limit spending, under "Limit spending", type a limit, then click Update limit.
    Field to type spending limit and Update limit button

Managing the spending limit for GitHub Actions for your organization

Organizations owners and billing managers can manage the spending limit for GitHub Actions for an organization.

If you pay for your organization account by invoice, you cannot manage the spending limit for your enterprise account on GitHub. If you want to allow repositories owned by your organization to use GitHub Actions beyond the storage or data transfer included for each repository, you can prepay for overages. Because overages must prepaid, you cannot enable unlimited spending on accounts paid by invoice. Your spending limit will be 150% of the amount you prepaid. If you have any questions, contact our account management team.

  1. In the top right corner of GitHub, click your profile photo, then click Your profile.
    Profile photo
  2. On the left side of your profile page, under "Organizations", click the icon for your organization.
    organization icons
  3. Under your organization name, click Settings.
    Organization settings button
  4. In your organization's Settings sidebar, click Billing.
    Billing settings
  5. Under "Billing", click Cost management.
    Cost management tab
  6. Under "Monthly spending limit", choose to limit spending or allow unlimited spending.
    Radio buttons to limit spending or allow unlimited spending
  7. If you chose to limit spending, under "Limit spending", type a limit, then click Update limit.
    Field to type spending limit and Update limit button

Managing the spending limit for GitHub Actions for your enterprise account

Enterprise owners and billing managers can manage the spending limit for GitHub Actions for an enterprise account.

If you pay for your enterprise account by invoice, you cannot manage the spending limit for your enterprise account on GitHub. If you want to allow organizations owned by your enterprise account to use GitHub Actions beyond the storage or data transfer included in their accounts, you can prepay for overages. Because overages must prepaid, you cannot enable unlimited spending on accounts paid by invoice. Your spending limit will be 150% of the amount you prepaid. If you have any questions, contact our account management team.

  1. Navigate to your enterprise account by visiting https://github.com/enterprises/ENTERPRISE-NAME, replacing ENTERPRISE-NAME with your enterprise account's name.
  2. In the enterprise account sidebar, click Settings.
    Settings tab in the enterprise account sidebar
  3. In the left sidebar, click Billing.
    Billing tab in the enterprise account settings sidebar
  4. Under "GitHub Actions and Packages monthly usage", click Cost management.
    Cost management tab
  5. Under "Monthly spending limit", choose to limit spending or allow unlimited spending.
    Radio buttons to limit spending or allow unlimited spending
  6. If you chose to limit spending, under "Limit spending", type a limit, then click Update limit.
    Field to type spending limit and Update limit button

Did this doc help you?