Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Bad Credentials error when passing token input in GHE #666

Closed
2 of 5 tasks
alvaro-ajv opened this issue May 11, 2023 · 6 comments
Closed
2 of 5 tasks

Getting Bad Credentials error when passing token input in GHE #666

alvaro-ajv opened this issue May 11, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@alvaro-ajv
Copy link

alvaro-ajv commented May 11, 2023

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:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted
@alvaro-ajv alvaro-ajv added bug Something isn't working needs triage labels May 11, 2023
@IvanZosimov
Copy link
Contributor

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

@KFo3
Copy link

KFo3 commented May 22, 2023

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

@alvaro-ajv
Copy link
Author

alvaro-ajv commented May 22, 2023

@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

@priya-kinthali
Copy link
Contributor

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
Copy link
Contributor

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 priya-kinthali self-assigned this Oct 18, 2024
@priya-kinthali
Copy link
Contributor

Hello @alvaro-ajv 👋,
As part of the latest updates, the potential improvement to leverage the raw API for retrieving version-manifest has been implemented and released in v5.1.0. This new approach should mitigate the rate limit exhaustion without requiring an additional GitHub token.
Please update to the latest version and let us know if you encounter any further issues. As this update resolves the reported problem, we will close this issue.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants
@alvaro-ajv @IvanZosimov @KFo3 @priya-kinthali and others