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

Support for github fine-grained personal token #179

Open
bh213 opened this issue Mar 16, 2023 · 2 comments
Open

Support for github fine-grained personal token #179

bh213 opened this issue Mar 16, 2023 · 2 comments

Comments

@bh213
Copy link

bh213 commented Mar 16, 2023

This would require -gh-token to accept single value that would then get used like this:

--header "Authorization: Bearer YOUR-TOKEN"

docs: https://docs.github.com/en/rest/overview/authenticating-to-the-rest-api?apiVersion=2022-11-28

@kevinresol
Copy link
Member

How is that different with current implementation?

@bh213
Copy link
Author

bh213 commented Mar 18, 2023

If I am looking at the right place in the code, it seems that github's --gh-credentials requires username and token while this new fine-grained personal token only requires bearer token in the Authorization header.

case _.split(':') => [user, tk]: new tink.url.Auth(user, tk);

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