I'm having issues with the `cerbos-setup` github a...
# help
s
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
Hi @Steve High (NTWRK), Let me check what is wrong with the action, and get back to you.
s
Thanks!
o
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
yep one sec
actually what I pasted above is all I have :(
o
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
Thank you!
o
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.