👋 We've unified all of GitHub's product documentation in one place! Check out the content for REST API, GraphQL API, and Developers. Learn more on the GitHub blog.


Publicamos atualizações frequentes em nossa documentação, e a tradução desta página ainda pode estar em andamento. Para obter as informações mais recentes, acesse a documentação em inglês. Se houver problemas com a tradução desta página, entre em contato conosco.

Managing your spending limit for GitHub Packages

You can set a spending limit for GitHub Package Registry usage.

GitHub Package Registry está disponível com GitHub Free, GitHub Pro, GitHub Free para organizações, GitHub Team, GitHub Enterprise Cloud e GitHub One. O GitHub Package Registry não está disponível para repositórios privados de contas que utilizam planos antigos por-repositório. Para obter mais informações, consulte os "produtos do GitHub".

Neste artigo

About spending limits for GitHub Package Registry

GitHub Package Registry usage is free for public packages. For private packages, each GitHub account receives a certain amount of free storage and data transfer, depending on the product used with the account. By default, your account will have a spending limit of $0, which prevents additional usage of storage or data transfer after you reach the included amounts. If you increase your spending limit above the default of $0, you will be billed for any additional storage or data transfer, also called overages, up to your spending limit. Any coupons on your account do not apply to GitHub Package Registry 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 Package Registry and GitHub Actions. For more information about pricing for GitHub Package Registry usage, see "About billing for GitHub Package Registry."

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 publishes a new version of a private package that increases your storage usage for the month from 1.9GB to 2.1GB, publishing the version will use slightly more 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 Package Registry for your user account

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

  1. In the upper-right corner of any page, click your profile photo, then click Settings.
    Ícone Settings (Configurações) na barra de usuário
  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 Package Registry for your organization

Organizations owners and billing managers can manage the spending limit for GitHub Package Registry 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 Package Registry 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 Package Registry for your enterprise account

Enterprise owners and billing managers can manage the spending limit for GitHub Package Registry 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 Package Registry 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

Pergunte a uma pessoa

Não consegue encontrar o que procura?

Entrar em contato