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
| token |Name of GitHub token used to query rate limits | github.token (`GITHUB_TOKEN`) |
48
+
| token | GitHub token used to query rate limits| github.token (`GITHUB_TOKEN`) |
49
49
| buckets | Comma-separated list of rate-limit buckets to track.<br>(core, search, graphql...) - see reference below for full list | core,search,graphql |
50
50
| output_path | Write usage report JSON to this path (empty to disable) | github_api_usage.json |
|`total`| Summation of captured queries/points used per bucket |
57
63
|`duration_ms`| Duration between first and last snapshot in milliseconds |
@@ -109,7 +115,7 @@ Example output:
109
115
110
116
### Token Types
111
117
112
-
- GitHub’s primary rate limit for Actions using the `GITHUB_TOKEN` is 1,000 REST API requests per repository per hour (or 15,000 per repository per hour for GitHub Enterprise Cloud).
118
+
- GitHub’s primary rate limit for Actions using the `GITHUB_TOKEN` is 1,000 REST API requests per repository per hour (or 15,000 per repository per hour for GitHub Enterprise Cloud); these limits are policy-level and can change independently of the API version.
113
119
- If you set the `token` to be a PAT, or something besides `GITHUB_TOKEN`, that token has the same rate-limit in the Action as it does elsewhere (and rate-limit "snapshots" will be impacted).
114
120
- Despite appearances, `GITHUB_TOKEN` is an ephemeral token that is minted at the start of each job, as an app installation token from the GitHub Actions app. However, the same _rate limit_ applies to any job within the repo, even though the tokens are, strictly speaking, non-identical.
115
121
- For this reason, the API usage measurements can only be considered precise if there is _no other job_ running concurrently with the action that you wish to track. This is also why the rate limit starting snapshot may already show non-0 usage data.
0 commit comments