node-gh / gh

(DEPRECATED) GitHub CLI made with NodeJS. Use the official https://cli.github.com/ instead.
http://nodegh.io
Other
1.71k stars 217 forks source link

Allow user and token to be picked up via process.env #469

Closed joscha closed 6 years ago

joscha commented 7 years ago

Currently the only way to configure the credentials is via the .gh.json file - I'd like to use gh in CI, but not necessarily check in the credentials - is there any easy way to pass the credentials via an environment variable? I searched the code, but couldn't find anything. Would you accept a PR for this?

henvic commented 7 years ago

We don't support it. And yes, I am willing to accept a PR.

Related: https://news.ycombinator.com/item?id=8826024

protoEvangelion commented 6 years ago

@joscha Please let me know if you made any progress on this.

If you have please let me know and we can work together on it.

If not no worries :wink:

joscha commented 6 years ago

@protoEvangelion sorry, the response on the question came after I started using an alternative, so I won't be adding this feature. Thanks for following up!

protoEvangelion commented 6 years ago

@joscha Thanks for the quick response and I am glad you found something that works ;)