-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Support GH_TOKEN #1229
Copy link
Copy link
Closed
Labels
authrelated to tokens, authentication state, or oauthrelated to tokens, authentication state, or oauthbugSomething isn't workingSomething isn't workingpriority-2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functions
Metadata
Metadata
Assignees
Labels
authrelated to tokens, authentication state, or oauthrelated to tokens, authentication state, or oauthbugSomething isn't workingSomething isn't workingpriority-2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functions
Type
Fields
Give feedbackNo fields configured for issues without a type.
#976 taught
ghto respect theGITHUB_TOKENenvironment variable. Unfortunately, I already use this environment variable for other tools, and as such it has the absolute minimum set of scopes attached to it for security purposes.Now that
ghhas started use this environment variable, I'm getting the following error:I don't want to grant this token additional scopes because it is not required for the other tools that use it.
Possible solutions:
GITHUB_TOKENtoGITHUB_GH_TOKENand avoid clashes altogetherGITHUB_TOKENto allow OAuth flow to take precedence (i.e. create a wrapper script which invokesGITHUB_TOKEN= command gh "$@")GITHUB_TOKENmethodThoughts?