Skip to main content

About billing for GitHub Actions

If you want to use GitHub Actions beyond the storage or minutes included in your account, you will be billed for additional usage.

About billing for GitHub Actions

Note

GitHub 可能会提前对按使用情况计费的成本值应用临时授权保留,这将在帐户的付款方式中显示为待定费用。

公共存储库中标准 GitHub 托管的运行器和自托管运行器可免费使用 GitHub Actions。 对于专用存储库,每个 GitHub 帐户可获得一定数量的免费时间和存储以用于 GitHub 托管的运行器,具体取决于帐户的计划。 超出包含数量的任何使用量都由支出限制控制。

如果您是按月计费的客户,您的帐户默认支出限额将为 0 美元,这可防止私有仓库超出帐户中所含金额的额外使用分钟数或存储空间。 如果按发票支付帐户费用,则帐户将具有无限制的默认支出限制。 For more information, see "About spending limits."

If you are an organization owner, you can connect an Azure Subscription ID to your organization account to enable and pay for GitHub Actions usage beyond the amounts included with your account. For more information, see "连接 Azure 订阅."

Minutes reset every month, while storage usage does not.

Included storage and minutes

Note

  • Included minutes cannot be used for larger runners. These runners will always be charged for, including in public repositories. For more information, see "About billing for GitHub Actions."
  • Logs and job summaries do not count towards storage usage.
PlanStorageMinutes (per month)
GitHub Free500 MB2,000
GitHub Pro1 GB3,000
GitHub Free for organizations500 MB2,000
GitHub Team2 GB3,000
GitHub Enterprise Cloud50 GB50,000

The storage used by a repository is the total storage used by GitHub Actions artifacts and GitHub Packages. Your storage cost is the total usage for all repositories owned by your account. For more information about pricing for GitHub Packages, see "About billing for GitHub Packages."

If your account's usage surpasses these limits and you have set a spending limit above $0 USD, you will pay $0.008 USD per GB of storage per day and per-minute usage depending on the operating system used by the GitHub-hosted runner. GitHub rounds the minutes and partial minutes each job uses up to the nearest whole minute.

Minute multipliers

Jobs that run on Windows and macOS runners that GitHub hosts consume minutes at 2 and 10 times the rate that jobs on Linux runners consume. For example, using 1,000 Windows minutes would consume 2,000 of the minutes included in your account. Using 1,000 macOS minutes, would consume 10,000 minutes included in your account.

Operating systemMinute multiplier
Linux1
Windows2
macOS10

Note

Minute multipliers do not apply to the per-minute rates shown below.

Per-minute rates

Per-minute rates for standard runners

Operating systemPer-minute rate (USD)
Linux 2-core$0.008
Windows 2-core$0.016
macOS 3-core or 4-core (M1 or Intel)$0.08

Per-minute rates for x64-powered 大型运行器

Operating systemPer-minute rate (USD)
Linux Advanced 2-core$0.008
Linux 4-core$0.016
Linux 8-core$0.032
Linux 16-core$0.064
Linux 32-core$0.128
Linux 64-core$0.256
Windows 4-core$0.032
Windows 8-core$0.064
Windows 16-core$0.128
Windows 32-core$0.256
Windows 64-core$0.512
Windows 4-core GPU$0.14
macOS 12-core$0.12

Per-minute rates for arm64-powered 大型运行器

Operating systemPer-minute rate (USD)
Linux 2-core$0.005
Linux 4-core$0.01
Linux 8-core$0.02
Linux 16-core$0.04
Linux 32-core$0.08
Linux 64-core$0.16
Windows 2-core$0.01
Windows 4-core$0.02
Windows 8-core$0.04
Windows 16-core$0.08
Windows 32-core$0.16
Windows 64-core$0.32
macOS 6-core (M1)$0.16

Per-minute rates for GPU-powered 大型运行器

Operating systemPer-minute rate (USD)
Linux 4-core$0.07
Windows 4-core$0.14

Points to note about rates for runners

  • The number of jobs you can run concurrently across all repositories in your user or organization account depends on your GitHub plan. For more information, see "使用限制、计费和管理" for GitHub-hosted runners and "关于自托管运行程序" for self-hosted runner usage limits.
  • 您必须单独管理每个帐户的计费设置和付款功能。 您可以使用每个设置页面上的上下文切换器在个人帐户、组织帐户和企业帐户的设置之间切换。 有关详细信息,请参阅“About billing on GitHub”。
  • 大型运行器 目前仅对使用 GitHub Team 或 GitHub Enterprise Cloud 计划的组织和企业可用。
  • 大型运行器 仅根据在其上执行工作流的时间量按每分钟费率计费。 创建工作流未使用的 大型运行器 无需支付任何费用。
  • For 大型运行器s, there is no additional cost for configurations that assign public static IP addresses to a 大型运行器. For more information on 大型运行器s, see "关于较大的运行器."
  • Included minutes cannot be used for 大型运行器s.
  • The 大型运行器s are not free for public repositories.

Calculating minute and storage spending

若要估算消耗性服务的成本,可以使用 GitHub 定价计算器

At the end of the month, GitHub calculates the cost of minutes and storage used over the amount included in your account.

Sample minutes cost calculation

For example, if your organization uses GitHub Team and allows unlimited spending, using 5,000 minutes could have a total storage and minute overage cost of $56 USD, depending on the operating systems used to run jobs.

  • 5,000 (3,000 Linux and 2,000 Windows) minutes = $56 USD ($24 USD + $32 USD).
    • 3,000 Linux minutes at $0.008 USD per minute = $24 USD.
    • 2,000 Windows minutes at $0.016 USD per minute = $32 USD.

GitHub calculates your storage usage for each month based on hourly usage during that month.

Sample storage cost calculation

Note

GitHub updates your storage space within a 6 to 12-hour window. If you delete artifacts, the available space will be reflected in your account during the next scheduled update.

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 Actions usage shares your account's existing billing date, payment method, and receipt. 要查看帐户在 GitHub.com 上的所有订阅,请参阅“Viewing your subscriptions and billing date”。

About spending limits

如果您是按月计费的客户,您的帐户默认支出限额将为 0 美元,这可防止私有仓库超出帐户中所含金额的额外使用分钟数或存储空间。 如果按发票支付帐户费用,则帐户将具有无限制的默认支出限制。

如果您的支出限额无限或大于 0 美元,将对您超出帐户所含金额的任何额外使用分钟数或存储计帐,也称为超限费用。 GitHub 向拥有其中运行工作流程的仓库的帐户收取使用费。 您帐户中的任何优惠券都不适用于 GitHub Actions 超额费用。

超额始终按月计费,并不以你的计费期限为准(即使你的帐户按年计费)。

For information on managing and changing your account's spending limit, see "Managing your spending limit for GitHub Actions."

如果帐户有未处理的未付费用:

  • 您的帐户中包含的 GitHub Actions 和 GitHub Packages 存储空间或分钟数将不会重置,直到付款处理成功。
  • 如果在当前计费周期内,帐户中有剩余的存储空间或分钟数,则 GitHub Actions 和 GitHub Packages 将继续可用,直到所含用量全部用完。
  • 如果在当前计费周期内,帐户中所含的 GitHub Actions 和 GitHub Packages 用量已用完,则 GitHub Actions 和 GitHub Packages 都将被禁用,以防进一步超限。