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

403 when using fine-grained token #3021

Open
adam-mrozik opened this issue Nov 24, 2022 · 2 comments
Open

403 when using fine-grained token #3021

adam-mrozik opened this issue Nov 24, 2022 · 2 comments
Labels

Comments

@adam-mrozik
Copy link

Hey!

Tool was working great for me, but I am getting 403 when using fine-grained tokens. Are the supported?

@mislav
Copy link
Owner

mislav commented Nov 24, 2022

@adam-mrozik hub just uses the GitHub API. Any token that works with the GitHub API should be supported.

Try your token with curl -H "Authorization: token $GH_TOKEN" https://api.github.com and see if that works. If you cannot access any API resources that the token should be able to access, then the 403s are a problem with the token itself.

@ndench
Copy link

ndench commented Jun 18, 2024

I'm getting this same issue. It appears that the fine grained access tokens are limited to the account in which they're generated. eg. The tokens you generate will not be able to access repositories under a github organisation.

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

No branches or pull requests

3 participants