Allow to pass token
dcodesdev opened this issue · 2 comments
dcodesdev commented
Allow to pass an authorization token whenever a command is run without the need for logging in using gh login
, for example, if I run gh release download v1.2.3 --token <token>
it should be able to authorize and download the release from the private GitHub repository.
williammartin commented
You can set GH_TOKEN
or GITHUB_TOKEN
env vars. You can read more about the supported env vars in gh environment
.
dcodesdev commented
Thank you, that was helpful.