Skip to content

Commit ba13a76

Browse files
author
Sarah Edwards
authored
Fix bug where the wrong enterprise variable was used in the rate limit docs (#46806)
1 parent 96a4aa5 commit ba13a76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/rest/overview/rate-limits-for-the-rest-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ All of these requests count towards your personal rate limit of {% ifversion gha
4343

4444
### Primary rate limit for {% data variables.product.prodname_github_app %} installations
4545

46-
{% data variables.product.prodname_github_apps %} authenticating with an installation access token use the installation's minimum rate limit of 5,000 requests per hour. If the installation is on a {% data variables.location.product_location %} organization, the installation has a rate limit of 15,000 requests per hour.
46+
{% data variables.product.prodname_github_apps %} authenticating with an installation access token use the installation's minimum rate limit of 5,000 requests per hour. If the installation is on a {% data variables.product.prodname_ghe_cloud %} organization, the installation has a rate limit of 15,000 requests per hour.
4747

48-
For installations that are not on a {% data variables.location.product_location %} organization, the rate limit for the installation will scale with the number of users and repositories. Installations that have more than 20 repositories receive another 50 requests per hour for each repository. Installations that are on an organization that have more than 20 users receive another 50 requests per hour for each user. The rate limit cannot increase beyond 12,500 requests per hour.
48+
For installations that are not on a {% data variables.product.prodname_ghe_cloud %} organization, the rate limit for the installation will scale with the number of users and repositories. Installations that have more than 20 repositories receive another 50 requests per hour for each repository. Installations that are on an organization that have more than 20 users receive another 50 requests per hour for each user. The rate limit cannot increase beyond 12,500 requests per hour.
4949

5050
Primary rate limits for {% data variables.product.prodname_github_app %} user access tokens (as opposed to installation access tokens) are dictated by the primary rate limits for the authenticated user. This rate limit is combined with any requests that another {% data variables.product.prodname_github_app %} or {% data variables.product.prodname_oauth_app %} makes on that user's behalf and any requests that the user makes with a {% data variables.product.pat_generic %}. For more information, see "[Primary rate limit for authenticated users](#primary-rate-limit-for-authenticated-users)."
5151

@@ -71,7 +71,7 @@ For these requests, the rate limit is 5,000 requests per hour per {% data variab
7171

7272
You can use the built-in `GITHUB_TOKEN` to authenticate requests in GitHub Actions workflows. For more information, see "[AUTOTITLE](/actions/security-guides/automatic-token-authentication)."
7373

74-
The rate limit for `GITHUB_TOKEN` is 1,000 requests per hour per repository.{% ifversion fpt or ghec %} For requests to resources that belong to an enterprise account on {% data variables.location.product_location %}, the limit is 15,000 requests per hour per repository.{% endif %}
74+
The rate limit for `GITHUB_TOKEN` is 1,000 requests per hour per repository.{% ifversion fpt or ghec %} For requests to resources that belong to a {% data variables.product.prodname_ghe_cloud %} account, the limit is 15,000 requests per hour per repository.{% endif %}
7575

7676
## About secondary rate limits
7777

0 commit comments

Comments
 (0)