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

Bug: Version 1.48 buf setup fails with Github Bad credentials #234

Closed
osangenis opened this issue Dec 20, 2024 · 3 comments
Closed

Bug: Version 1.48 buf setup fails with Github Bad credentials #234

osangenis opened this issue Dec 20, 2024 · 3 comments

Comments

@osangenis
Copy link

Hello, since the release of the version 1.48, the action started to fail:

Run bufbuild/buf-setup-action@v1
Setting up buf version "1.48.0"
Resolving the download URL for the current platform...
Error: Bad credentials - https://docs.github.com/rest

But the github_token provided was ok yesterday with the previous version

@emcfarlane
Copy link
Contributor

Hey @osangenis I wasn't able to reproduce this. Could you check your GitHub action token provided is still valid. The previous action version may have been cached so only noticing the token expiration now. Thanks

@emcfarlane
Copy link
Contributor

You might want to look at the buf-action. You can replace the buf-setup-action but we also provide default behaviour for a workflow that we found works well. By default the GitHub token parameter github_token is set to inherit the token from the parent action, so this should avoid requiring any explicit handling of GitHub tokens.

@osangenis
Copy link
Author

Indeed the issue was the token, apologies for that. We're migrating t buf-action, thank you so much for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants