We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We can use:
curl --request GET \ --url "https://api.github.com/octocat" \ --header "Authorization: Bearer YOUR-TOKEN"
to test the github-token before using it and possibly print a warning and drop it to fallback to unauthorized mode if the token is invalid.
The text was updated successfully, but these errors were encountered:
We can also test for the gh*_ prefix as an early check.
gh*_
Sorry, something went wrong.
Aha right, this is the most simple check we can get.
GhApiClient: Fallback to unauthorized mode if auth token is invalid
GhApiClient
093be82
Fixed #850 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2acba14
Successfully merging a pull request may close this issue.
We can use:
to test the github-token before using it and possibly print a warning and drop it to fallback to unauthorized mode
if the token is invalid.
The text was updated successfully, but these errors were encountered: