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

Getting Bad Credentials error when passing token input in GHE

Open alvaro-ajv opened this issue 2 years ago • 5 comments

Description: When trying to pass the token input to reduce rate limit error, we are getting "Bad Credentials" error; using previous versions of the action it works, but using the last release we get that error.

Seems that the bug was introduced on these PR: 443 Also the same change from the mentioned PR was tested and reverted in these PRs respectively: 427 and 437

Action version 4.2.0 that is before of the change works fine.

We are trying to use the latest version of the action due to deprecation of "set-output" command as described in the docs, and as is mentioned in PR 578, latest version should remove the warning, but we cannot use later versions than 4.2.0 due to above bug.

Bad credentials error:

image

"set-ouput" warning:

image

Action version: Latest

Platform:

  • [x] Ubuntu
  • [ ] macOS
  • [ ] Windows

Runner type:

  • [ ] Hosted
  • [x] Self-hosted

alvaro-ajv avatar May 11 '23 16:05 alvaro-ajv

Hi, @alvaro-ajv 👋 Thanks for the issue, we will take a look!

IvanZosimov avatar May 12 '23 15:05 IvanZosimov

Similar to Disney's error might be the same bug. Please correct me if I am wrong. ZD Ticket

Disney just started experiencing this problem after updating GHES to 3.8.3. They are also utilizing PAT over tokens. Self hosted runners using ubuntu:jammy 22.04.2

Current runner version: '2.304.0'

Run actions/setup-python@v4
Version 3.10 was not found in the local cache
Error: Bad credentials

KFo3 avatar May 22 '23 20:05 KFo3

@KFo3, yes exactly it's the same bug, it was introduced in this PR: 443

Here the error is happening in Kyndryl's GHE version 3.8.3

alvaro-ajv avatar May 22 '23 21:05 alvaro-ajv

Hello @alvaro-ajv 👋, 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 @alvaro-ajv 👋, 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