1

I have a CLI tool that downloads files from a GitHub repo and I wrote integration tests for this tool that use the actual GitHub API. I don't make the requests with authentication so I get hit by the rate limit when I run the tests too fast:

For unauthenticated requests, the rate limit allows for up to 60 requests per hour. Unauthenticated requests are associated with the originating IP address, and not the user making requests.

Does the same limit apply for CI scripts run in GitHub Actions?

Paul Razvan Berg
  • 16,949
  • 9
  • 76
  • 114

1 Answers1

0

While GitHub Actions themselves have rate limits (from this issue, 20 workflow executions per minute), this is about, as Allan Chain points out in the comments) about GitHub REST API calls.

And the official page on REST API Rate limit is not clear on that rate, when execute from a GitHub Action worlflow.

But it does point out the call:

curl -H "Accept: application/vnd.github.v3+json" \
  https://api.github.com/rate_limit

So you can add that call (which does not count against your REST API rate limit) before and after your other REST API calls, and you will see how said rate is impacted.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250