-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
bugSomething isn't workingSomething isn't workingpriority-1Affects a large population and inhibits workAffects a large population and inhibits work
Description
Describe the feature or problem you’d like to solve
When I have set GH_ENTERPRISE_TOKEN and GH_HOST environmental variables and run gh auth token, I get no oauth token. I would expect it to return the token regardless of whether it is GH_TOKEN or GH_ENTERPRISE_TOKEN.
Proposed solution
gh auth token returns the token used, whether it is GH_TOKEN or GH_ENTERPRISE_TOKEN.
Other Discussion
gh auth token --hostname <hostname> does the same thing, but if you are only using GitHub Enterprise then it could become tedious to always put --hostname.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority-1Affects a large population and inhibits workAffects a large population and inhibits work