lix-pm / lix.client

A dependable package manager for your Haxe projects
The Unlicense
119 stars 24 forks source link

Support for github fine-grained personal token #179

Open bh213 opened 1 year ago

bh213 commented 1 year ago

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 commented 1 year ago

How is that different with current implementation?

bh213 commented 1 year ago

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.

https://github.com/lix-pm/lix.client/blob/8777265cacd850427dde75ea481fe7c8fd227803/src/lix/cli/Cli.hx#L40