checkout-files
checkout-files copied to clipboard
Rate limit hit on a folder with 1,400 files
I tried using the action to fetch a folder with 1,400 files (would have saved me fetching a repo with 140k files), but the action hit a rate limit:
Run Bhacaz/checkout-files@v2
/home/runner/work/_actions/Bhacaz/checkout-files/v2/node_modules/@octokit/request/dist-node/index.js:86
const error = new requestError.RequestError(toErrorMessage(data), status, {
^
RequestError [HttpError]: You have exceeded a secondary rate limit. Please wait a few minutes before you try again.
at /home/runner/work/_actions/Bhacaz/checkout-files/v2/node_modules/@octokit/request/dist-node/index.js:86:21
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
status: 403
Hi, thanks for the issue. Migrating to the tree API seems to be the solution. For the rate limiting and other issues. I'll to take a look.