You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|{% data variables.product.prodname_ghe_cloud %} | 50 GB | 50,000 |
64
+
{% data reusables.billing.actions-included-quotas %}
65
+
66
+
{% ifversion fpt or ghec %}
67
+
68
+
For information about cache storage limits and how to increase them, see [Usage limits and eviction policy](/actions/reference/workflows-and-actions/dependency-caching#usage-limits-and-eviction-policy).
69
+
70
+
{% endif %}
71
71
72
72
### Private IP scaling for vnet injection on larger runners
Copy file name to clipboardExpand all lines: content/actions/reference/workflows-and-actions/dependency-caching.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,9 @@ versions:
17
17
ghes: '*'
18
18
ghec: '*'
19
19
type: overview
20
+
topics:
21
+
- Actions
22
+
- Workflows
20
23
---
21
24
22
25
## `cache` action usage
@@ -261,9 +264,25 @@ Multiple workflow runs in a repository can share caches. A cache created for a b
261
264
262
265
## Usage limits and eviction policy
263
266
264
-
{% data variables.product.prodname_dotcom %} will remove any cache entries that have not been accessed in over 7 days. There is no limit on the number of caches you can store, but the total size of all caches in a repository is limited{% ifversion ghes %}. By default, the limit is 10 GB per repository, but this limit might be different depending on policies set by your enterprise owners or repository administrators.{% else %} to 10 GB.{% endif %} {% data reusables.actions.cache-eviction-policy %}
267
+
{% data variables.product.prodname_dotcom %} applies limits to cache storage and retention to manage storage costs and prevent abuse. Understanding these limits helps you optimize your cache usage.
265
268
266
-
{% data reusables.actions.cache-eviction-process %} The cache eviction process may cause cache thrashing, where caches are created and deleted at a high frequency. To reduce this, you can review the caches for a repository and take corrective steps, such as removing caching from specific workflows. See [AUTOTITLE](/actions/how-tos/managing-workflow-runs-and-deployments/managing-workflow-runs/manage-caches).{% ifversion ghes %} You can also increase the cache size limit for a repository. For more information, see [AUTOTITLE](/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#configuring-cache-storage-for-a-repository).
269
+
### Default limits
270
+
271
+
{% data variables.product.github %} will remove any cache entries that have not been accessed in over 7 days. There is no limit on the number of caches you can store, but the total size of all caches in a repository is limited. By default, the limit is 10 GB per repository, but this limit can be increased by enterprise owners, organization owners, or repository administrators. {% ifversion fpt or ghec %}Any usage beyond 10 GB is billed to your account.{% endif %} {% data reusables.actions.cache-eviction-policy %}
272
+
273
+
{% data reusables.actions.cache-eviction-process %} The cache eviction process may cause cache thrashing, where caches are created and deleted at a high frequency. To reduce this, you can review the caches for a repository and take corrective steps, such as removing caching from specific workflows{% ifversion fpt or ghec %} or increasing your cache size. This functionality is only available to users with a payment method on file who opt in by configuring cache settings{% endif %}. See [AUTOTITLE](/actions/how-tos/managing-workflow-runs-and-deployments/managing-workflow-runs/manage-caches).{% ifversion ghes %} You can also increase the cache size limit for a repository. For more information, see [AUTOTITLE](/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#configuring-cache-storage-for-a-repository).
274
+
275
+
{% endif %}
276
+
{% ifversion fpt or ghec %}
277
+
278
+
### Increasing cache size
279
+
280
+
If you want to reduce the rate at which cache entries are evicted, you can increase the storage limits for your cache in the Actions Settings. Repositories owned by users can configure up to 10 TB per repository. For repositories owned by organizations, the maximum configurable limit is determined by the organization's settings. For organizations owned by an enterprise, the maximum configurable limit is determined by the enterprise's settings. Increasing the limit beyond the default 10 GB will incur additional costs, if that storage is used.
Copy file name to clipboardExpand all lines: content/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,28 @@ By default, artifacts and log files generated by workflows are retained for 90 d
145
145
146
146
Changes only apply to new artifacts and log files.
147
147
148
+
{% ifversion ghec %}
149
+
150
+
### Cache settings
151
+
152
+
You can configure maximum cache retention and size limits that will apply across your entire enterprise. If you increase the "Cache size eviction limit" beyond the 10 GB included in your plan, you will be charged for any additional storage of cached entries.
153
+
154
+
By default:
155
+
156
+
* Caches are retained for 7 days before automatic deletion.
157
+
* The total cache storage limit is 10 GB per repository.
158
+
159
+
You can customize these settings to set maximum limits for cache retention and cache storage size across your enterprise:
160
+
161
+
***Cache retention**: Configure up to 90 days for public repositories or 365 days for private and internal repositories.
162
+
***Cache size eviction limit**: Configure up to 10,000 GB per repository.
163
+
164
+
The settings you configure at the enterprise level act as maximum limits. Organization owners can opt in to configure limits for their organization, but cannot exceed the limits set at the enterprise level. Repository administrators can opt in to configure limits for their repositories, but cannot exceed the limits set at the organization level.
165
+
166
+
For more information about cache eviction, see [AUTOTITLE](/actions/reference/workflows-and-actions/dependency-caching#usage-limits-and-eviction-policy).
Copy file name to clipboardExpand all lines: content/billing/concepts/product-billing/github-actions.md
+28-22Lines changed: 28 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,28 +27,23 @@ contentType: concepts
27
27
28
28
{% data variables.product.prodname_actions %} usage is **free** for **self-hosted runners** and for **public repositories** that use standard {% data variables.product.github %}-hosted runners. See [AUTOTITLE](/actions/writing-workflows/choosing-where-your-workflow-runs/choosing-the-runner-for-a-job#standard-github-hosted-runners-for-public-repositories).
29
29
30
-
For **private repositories**, each {% data variables.product.github %} account receives a quota of free minutesand artifact storage for use with {% data variables.product.github %}-hosted runners, depending on the account's plan. Any usage beyond the included amounts is billed to your account. Minutes reset every month, while storage usage does not.
30
+
For **private repositories**, each {% data variables.product.github %} account receives a quota of free minutes, artifact storage, and cache storage for use with {% data variables.product.github %}-hosted runners, depending on the account's plan. Any usage beyond the included amounts is billed to your account. Minutes reset every month, while artifact and cache storage usage do not.
31
31
32
32
> [!TIP]
33
33
> Anyone with write access to a repository can run actions without using minutes for their personal account.
34
34
35
35
### Examples of how usage is measured
36
36
37
-
* If you run a workflow on a standard Linux runner and it takes 10 minutes to complete, you'll use 10 minutes of the repository owner's allowance. If the workflow generates a 10 MB artifact, then you'll also use 10 MB of the repository owner's storage allowance.
37
+
* If you run a workflow on a standard Linux runner and it takes 10 minutes to complete, you'll use 10 minutes of the repository owner's allowance. If the workflow generates a 10 MB artifact, then you'll also use 10 MB of the repository owner's artifact storage allowance.
38
38
* If you run a workflow that normally takes 10 minutes and it fails after 5 minutes because a dependency isn't available, you'll use 5 minutes of the repository owner's allowance. If you fix the problem and re-run the workflow successfully, in total you'll use 15 minutes of the repository owner's allowance.
39
-
* If you run a workflow that generates many log files and a long job summary, these files do not count towards the repository owner's storage allowance.
39
+
* If you run a workflow that generates many log files and a long job summary, these files do not count towards the repository owner's artifact storage allowance.
40
+
* Cache storage usage is measured by the peak usage for each hour. Included usage is 10 GB per repository. For a given hour, if a repository has a peak cache usage of 15 GB, then the repository owner will be charged for the 5 GB of usage above the 10 GB included for that hour. The repository owner will only be charged if the repository cache storage limit has been configured higher than the included usage.
40
41
41
42
## Free use of {% data variables.product.prodname_actions %}
42
43
43
-
The following amounts of time for standard runnersand artifact storage are included in your {% data variables.product.github %} plan. At the start of each month, the minutes used by the account are reset to zero.
44
+
The following amounts of time for standard runners, artifact storage, and cache storage are included in your {% data variables.product.github %} plan. At the start of each month, the minutes used by the account are reset to zero.
{% data reusables.billing.actions-included-quotas %}
52
47
53
48
> [!NOTE]
54
49
> Included minutes cannot be used for larger runners. These runners will always be charged for, even when used by public repositories.
@@ -68,10 +63,10 @@ If your account does not have a valid payment method on file, usage is blocked o
68
63
69
64
You pay for any additional use above your quota using the payment method set up for your {% data variables.product.github %} account. See [AUTOTITLE](/billing/how-tos/set-up-payment/manage-payment-info).
70
65
71
-
Storage is billed based on hourly usage of artifacts throughout the month. Minutes are calculated based on the total processing time used on each runner type during the month.
66
+
Storage is billed based on hourly usage of artifacts and caches throughout the month. Minutes are calculated based on the total processing time used on each runner type during the month.
72
67
73
68
* To estimate costs for paid {% data variables.product.prodname_actions %} usage, use the {% data variables.product.github %} [pricing calculator](https://github.com/pricing/calculator?feature=actions).
74
-
* To view your current minutesand storage, see [AUTOTITLE](/billing/managing-billing-for-your-products/viewing-your-product-usage).
69
+
* To view your current minutes, artifact, and cache storage, see [AUTOTITLE](/billing/managing-billing-for-your-products/viewing-your-product-usage).
75
70
76
71
> [!NOTE]
77
72
> The billing dashboard may show your Actions usage as a dollar amount ("spend") rather than raw minutes. This amount already reflects any applicable minute multipliers.
@@ -81,36 +76,47 @@ Storage is billed based on hourly usage of artifacts throughout the month. Minut
81
76
Each type of runner has a minute multiplier that is determined by the operating system and processing power. For example, jobs that run on Windows and macOS runners hosted by {% data variables.product.github %} consume minutes at 2 and 10 times the rate that jobs on Linux runners consume.
82
77
83
78
| Operating system | Minute multiplier |
84
-
|-----------------| :----------------:|
85
-
| Linux |1|
86
-
| Windows |2|
87
-
| macOS |10|
79
+
|---------------- | :---------------: |
80
+
| Linux |1|
81
+
| Windows |2|
82
+
| macOS |10|
88
83
89
84
For full details of minute multipliers for {% data variables.product.github %}-hosted runners, see [AUTOTITLE](/billing/reference/actions-minute-multipliers).
90
85
91
86
### Example minutes cost calculation
92
87
93
-
For example, if your organization uses {% data variables.product.prodname_team %}, using 5,000 minutes beyond the included quota would have a total storage and minute cost of $56 USD, with the use of both Linux and Windows runners.
88
+
For example, if your organization uses {% data variables.product.prodname_team %}, using 5,000 minutes beyond the included quota would have a total actions minutes cost of $56 USD, with the use of both Linux and Windows runners.
94
89
95
90
* 5,000 (3,000 Linux and 2,000 Windows) minutes = $56 USD ($24 USD + $32 USD).
96
91
* 3,000 Linux minutes at $0.008 USD per minute = $24 USD.
97
92
* 2,000 Windows minutes at $0.016 USD per minute = $32 USD.
98
93
99
94
This example assumes that the baseline runner was used for each operating system.
100
95
101
-
### Example storage cost calculation
96
+
### Example artifact storage cost calculation
102
97
103
-
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:
98
+
If you use 3 GB of artifact storage for 10 days of March and 12 GB for 21 days of March, your artifact storage usage would be:
104
99
105
100
* 3 GB x 10 days x (24 hours per day) = 720 GB-Hours
106
101
* 12 GB x 21 days x (24 hours per day) = 6,048 GB-Hours
At the end of the month, {% data variables.product.github %} rounds your storage to the nearest MB. Therefore, your storage usage for March would be 9.097 GB.
105
+
At the end of the month, {% data variables.product.github %} rounds your artifact storage to the nearest MB. Therefore, your artifact storage usage for March would be 9.097 GB.
111
106
112
107
> [!NOTE]
113
-
> {% data variables.product.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.
108
+
> {% data variables.product.github %} updates your artifact 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.
109
+
110
+
### Example cache storage cost calculation
111
+
112
+
If you use 3 GB of cache storage for 10 days of March and 12 GB for 21 days of March, your cache storage usage would be:
| 3 GB for the first 10 days | 0 GB-Hours | 720 GB-Hours |
117
+
| 12 GB for the next 21 days |**2\*21 days\*24 hours = 1008 GB-Hours**| 10\*21 days\*24 hours=5040 GB-Hours |
118
+
119
+
For cached storage, billing charts and reports show only the cost of usage beyond the included 10 GB. At the end of the month, the Actions Cache Storage SKU would show a use of 1008 GB-Hours.
114
120
115
121
## Managing your budget for {% data variables.product.prodname_actions %}
Copy file name to clipboardExpand all lines: content/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,29 @@ For each repository in your organization, you can see how much cache storage a r
153
153
1. In the left sidebar, click **{% octicon "play" aria-hidden="true" aria-label="play" %} Actions**, then click **Caches**.
154
154
1. Review the list of repositories for information about their {% data variables.product.prodname_actions %} caches. You can click on a repository name to see more detail about the repository's caches.
155
155
156
+
{% ifversion fpt or ghec %}
157
+
158
+
### Configuring {% data variables.product.prodname_actions %} cache settings for your organization
159
+
160
+
You can configure cache retention and size settings that will apply to all repositories in your organization. This feature is opt-in and available to users with a payment method on file.
161
+
162
+
If your organization is owned by an enterprise that has configured cache settings, you can only configure limits up to the maximum set by the enterprise. If your organization is not owned by an enterprise (or the enterprise hasn't configured cache settings), you can configure up to the global maximums.
163
+
164
+
Repository administrators can opt in to configure limits for their repositories, but cannot exceed the limits set at the organization level.
165
+
166
+
{% data reusables.profile.access_profile %}
167
+
{% data reusables.profile.access_org %}
168
+
{% data reusables.profile.org_settings %}
169
+
{% data reusables.organizations.settings-sidebar-actions-general %}
170
+
171
+
1. In the "Cache" section, configure and save your changes to the following settings:
172
+
***Cache retention**: The maximum number of days to retain caches before automatic deletion. The default is 7 days. You can configure up to 365 days (or up to the limit set by your enterprise). Click **Save** to apply any changes you make.
173
+
***Cache size eviction limit**: The maximum total size of all caches in a repository. The default is 10 GB. You can configure up to 10,000 GB per repository (or up to the limit set by your enterprise). When this limit is exceeded, older caches will be evicted to make room for new caches. Click **Save** to apply any changes you make.
174
+
175
+
For more information about cache eviction, see [AUTOTITLE](/actions/reference/workflows-and-actions/dependency-caching#usage-limits-and-eviction-policy).
176
+
177
+
{% endif %}
178
+
156
179
{% ifversion ghes %}
157
180
158
181
### Configuring {% data variables.product.prodname_actions %} cache storage for your organization
0 commit comments