arduino/setup-protoc

Install can fail if GitHub API limit is reached

NfNitLoop opened this issue · 2 comments

It looks like internally, setup-protoc calls GitHub to download releases.

If a build node has been making lots of calls to GitHub already (say, due to someone else previously building on it), then my node can (and did) fail due to hitting GitHub's API limit for unauthenticated requests.

image

Ah! I was reading docs on other actions and saw them passing GITHUB_TOKEN environment variables.

Sure enough, you already document that in the README.md. Sorry for the false alarm.

- name: Install Protoc
  uses: arduino/setup-protoc@v1
  with:
    repo-token: ${{ secrets.GITHUB_TOKEN }}

We are doing this but we are hitting a new limit now: Error: API rate limit exceeded for installation ID 6726902.

See https://github.com/libp2p/rust-libp2p/actions/runs/3690143001/jobs/6246851778#logs for an example.

Any way we can work around this?