Repository navigation
Mark stale prs CI has a very low limit #140279
Description
Activity
- addedtype-featureA feature request or enhancementA feature request or enhancementinfraCI, GitHub Actions, buildbots, Dependabot, etc.CI, GitHub Actions, buildbots, Dependabot, etc.
on Oct 18, 2025 GitHub Apps authenticating with an installation access token ... on a GitHub Enterprise Cloud organization, the installation has a rate limit of 15,000 requests per hour.
Does actions/stale run as a GitHub app? (re: https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#primary-rate-limit-for-github-app-installations)
Or is it running as a GitHub Actions workflow? (re: https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#primary-rate-limit-for-github_token-in-github-actions)
You can use the built-in GITHUB_TOKEN to authenticate requests in GitHub Actions workflows. See Use GITHUB_TOKEN for authentication in workflows.
The rate limit for GITHUB_TOKEN is 1,000 requests per hour per repository. For requests to resources that belong to a GitHub Enterprise Cloud account, the limit is 15,000 requests per hour per repository.
The actions/stale docs say of operations-per-run:
These operations are made in a very short period of time — because the action is very fast to run — and can be numerous based on your project action configuration and the quantity of issues and pull requests within it.
And:
When debugging, you can set it to a much higher number like 1000 since there will be fewer operations made with the GitHub API.
Only the actor and the batch of issues (100 per batch) will consume the operations.Would 5,000 requests use up our 1,000/hour quota very quickly and cause other workflows to stop running?
Reacted by Stan UlbrychReading GitHub's documentation it is not clear to me whether the
uses: packageis an installation or not. How about we increase to 800? Do the other workflows even use the API I wonder, per the actions/checkout docs Git is used, with a fallback to the API if that fails.- added a commit that references this issue
on Apr 6, 2026 With the cache it's slowly but surely making progress, closing.
Reacted by Hugo van Kemenade
Feature or enhancement
The CI has a limit of 120, as can be seen in today's run.
Looking at the docs on rate limits, IIUC the action would fall under:
There is also the option of adding a
GITHUB_TOKENto increase the limit to 15000.Linked PRs
stale.yml'soperations-per-run#140280