GitHub Action Flake Update Rate Limiting

I am confused on how to get around the rate limiting on GitHub actions. From my workflow, I get this issue:

warning: error: unable to download 'https://api.github.com/repos/misterio77/nix-colors/commits/HEAD': HTTP error 429

       response body:

       {
         "message": "This endpoint is temporarily being throttled. Please try again later. For more on scraping GitHub and how it may affect your rights, please review our Terms of Service (https://docs.github.com/en/site-policy/github-terms/github-terms-of-service)",
         "documentation_url": "https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api",
         "status": "429"
       }; retrying in 274 ms

Any input is appreciated.

see here: https://discourse.nixos.org/t/flakes-provide-github-api-token-for-rate-limiting

1 Like

Even with the token I am still getting that rate limit. Putting it in $HOME/.config/nix/nix.conf does not change the limit.

GitHub also has hard per user/per repo limits, even with access tokens. Maybe you are hotting these? You can query these in your job to get more info:

1 Like

git ls-remote is less rate limited than the HTTP API

I think that was it. Retrying the job awhile later gets past the nix flake update. Thanks!