https://cerbos.dev logo
#help
Title
# help
s

Steve High (NTWRK)

02/16/2023, 5:52 PM
I'm having issues with the
cerbos-setup
github action. I am defining my step as:
Copy code
- name: Get Cerbos CLI
        uses: cerbos/cerbos-setup-action@v1
        with:
          version: latest
          github_token: ${{secrets.INTERNAL_TOKEN}}
Where
${{secrets.INTERNAL_TOKEN}}
is a valid github api token (used in other steps without issue). Occasionally with this action, I get the following error:
Copy code
HttpError: API rate limit exceeded for 52.190.17.193. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
    at /home/runner/work/_actions/cerbos/cerbos-setup-action/v1/webpack:/cerbos-setup-action/node_modules/@octokit/request/dist-node/index.js:86:1
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
I went so far as recreated a new token and storing it in github secrets..the issue still happens a few times a day. Is the action using the provided github token?
o

oguzhan

02/16/2023, 5:56 PM
Hi @Steve High (NTWRK), Let me check what is wrong with the action, and get back to you.
s

Steve High (NTWRK)

02/16/2023, 5:57 PM
Thanks!
o

oguzhan

02/16/2023, 6:43 PM
Do you mind checking the logs for the
cerbos-setup-action
to see if the following line is there?
Copy code
github_token is unavailable. Stricter rate limiting will be applied by GitHub.
s

Steve High (NTWRK)

02/16/2023, 6:44 PM
yep one sec
actually what I pasted above is all I have :(
o

oguzhan

02/16/2023, 7:01 PM
I managed to reproduce the issue on a dummy repo. We are using a GitHub library to access the GitHub API, and there could potentially be a problem with it or the way we are interacting with it. I will investigate it further.
s

Steve High (NTWRK)

02/16/2023, 7:01 PM
Thank you!
o

oguzhan

02/17/2023, 3:19 PM
Hi @Steve High (NTWRK), We found that one of the API calls we were making to GitHub was unauthenticated. We have fixed that and released a new version.
4 Views