我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

About billing for GitHub Packages

If you want to use GitHub 包注册表 beyond the storage or data transfer included in your account, you will be billed for additional usage.

GitHub 包注册表 可用于 GitHub Free、GitHub Pro、GitHub Team、GitHub Enterprise Cloud 和 GitHub One。 GitHub 包注册表 is not available for private repositories owned by accounts using legacy per-repository plans. 更多信息请参阅“GitHub 的产品”。

本文内容

关于 GitHub 包注册表 的计费

公共包免费使用 GitHub 包注册表。 对于私有包,每个 GitHub 帐户可获得一定数量的免费存储和数据传输,具体取决于帐户所使用的产品。 默认情况下,您的帐户支出限额为 0 美元,这将防止您在达到包含的限额后额外使用存储或数据传输。 如果您的支出限额高于默认的 0 美元,您将会收到额外存储或数据传输的帐单,也称为超限费用,最高可达到您的支出限额。

Data transfer resets every month, while storage usage does not.

产品存储器Data transfer (per month)
GitHub Free500MB1GB
GitHub Pro1GB5GB
GitHub Team2GB10GB
GitHub Enterprise Cloud50GB100GB

All data transferred out, when triggered by GitHub 操作, and data transferred in from any source is free. We determine you are downloading packages using GitHub 操作 when you log in to GitHub 包注册表 using a GITHUB_TOKEN.

HostedSelf-Hosted
Access using a GITHUB_TOKEN免费免费
Access using a personal access token免费$

Storage usage is shared with build artifacts produced by GitHub 操作 for repositories owned by your account. For more information, see "About billing for GitHub 操作."

GitHub charges usage to the account that owns the repository where the package is published. If your account's usage surpasses these limits and you have set a spending limit above $0, you will pay $0.25 USD per GB of storage and $0.50 USD per GB of data transfer.

For example, if your organization uses GitHub Team, allows unlimited spending, uses 150GB of storage, and has 50GB of data transfer out during a month, the organization would have overages of 148GB for storage and 40GB for data transfer for that month. The storage overage would cost $0.25 per GB or $37. The overage for data transfer would cost $0.50 per GB or $20.

At the end of the month, GitHub rounds your data transfer to the nearest GB.

GitHub calculates your storage usage for each month based on hourly usage during that month. For example, if you use 3 GB of storage for 10 days of March and 12 GB for 21 days of March, your storage usage would be:

  • 3 GB x 10 days x (24 hours per day) = 720 GB-Hours
  • 12 GB x 21 days x (24 hours per day) = 6,048 GB-Hours
  • 720 GB-Hours + 6,048 GB-Hours = 6,768 GB-Hours
  • 6,768 GB-Hours / (744 hours per month) = 9.0967 GB-Months

At the end of the month, GitHub rounds your storage to the nearest MB. Therefore, your storage usage for March would be 9.097 GB.

Your GitHub 包注册表 usage shares your account's existing billing date, payment method, and receipt. 要查看您的 GitHub 帐户的所有订阅,请参阅“查看订阅和计费日期”。

About spending limits

By default, your account will have a spending limit of $0 for GitHub 包注册表 usage. To enable storage and data transfer for private packages beyond the amounts included with your account, you can increase the spending limit or allow unlimited spending. For more information, see "Managing your spending limit for GitHub 包注册表."

如果通过发票支付您的企业帐户,则不能在 GitHub 上管理企业帐户的支出限额。 如果想允许您的企业帐户拥有的组织在其帐户包含的存储或数据传输之外使用 GitHub 包注册表 , 您可以预付超限费用。 Because overages must prepaid, you cannot enable unlimited spending on accounts paid by invoice. 您的支出限额将是您预付金额的 150%。 如有任何问题,请联系我们的客户管理团队

If your account has outstanding unpaid charges:

  • The storage or minutes included in your account for GitHub 操作 and GitHub 包注册表 will not be reset until the payment has been successfully processed.
  • For accounts with storage or minutes remaining for the current billing period, GitHub 操作 and GitHub 包注册表 will continue to be available until any included usage has been reached.
  • For accounts that have reached the included usage for the current billing period for GitHub 操作 or GitHub 包注册表, both GitHub 操作 and GitHub 包注册表 will be disabled to prevent any further overages.

问问别人

找不到要找的内容?

联系我们