setup-python icon indicating copy to clipboard operation
setup-python copied to clipboard

Rate limit token does not work on GHE

Open mvs5465 opened this issue 2 years ago • 6 comments

Description: Using the token parameter for the Github Action, the token is not used.

Action version: v4

Platform:

  • [x] Ubuntu

Runner type:

  • [x] Self-hosted

Tools version: 3.x

Repro steps:
Add a Github Action workflow like this to your Github Enterprise repository:

      - name: Install Python
        uses: actions/setup-python@v4
        with:
          token: ${{ secrets.DOTCOM_TOKEN }}
          python-version: '3.x'

Then also add https://github.com/actions/setup-python/pull/510#discussion_r982394709 using the same token variable.

We can tell by the rate-limit response that the token has not been used.

Expected behavior:

Expect action to use token.

Actual behavior:

API rate limit exceeded for <ip>

We confirmed using the rate limit query that the rate limit quotas have not changed, and thus the token has not been used by the action.

mvs5465 avatar Mar 28 '23 18:03 mvs5465

Hello @mvs5465 Thank you for your report. We'll investigate the issue and get back to you.

e-korolevskii avatar Mar 29 '23 07:03 e-korolevskii

Hi @e-korolevskii, are there any updates on this issue? I am facing the exact same issue in my GitHub Enterprise repository.

chebong-aus avatar Jul 10 '23 00:07 chebong-aus

Hello everyone. Could you please take a look at this issue because I think they're related.

dmitry-shibanov avatar Jul 10 '23 08:07 dmitry-shibanov

Hi @dmitry-shibanov, looking at the link you provided, not sure if they are related because the error I get is Error: API rate limit exceeded for x. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.). This is while passing in a GitHub.com Token.

chebong-aus avatar Jul 10 '23 23:07 chebong-aus

Hello @mvs5465 👋, Could you kindly verify if the issue related to the rate limit has been resolved and confirm that no other issues have emerged while using the setup-actions-demo/setup-python@main branch.

priya-kinthali avatar Feb 14 '24 12:02 priya-kinthali

Hello @mvs5465👋, Just a gentle reminder, Could you kindly verify if the issue related to the rate limit has been resolved and confirm that no other issues have emerged while using the setup-actions-demo/setup-python@main branch.

priya-kinthali avatar Mar 06 '24 05:03 priya-kinthali