Merge pull request #10164 from cli/jtmcg/update-auth-PAT-info
Add mention of classic token in gh auth login docs
This commit is contained in:
commit
d6dba93586
1 changed files with 3 additions and 1 deletions
|
|
@ -68,9 +68,11 @@ func NewCmdLogin(f *cmdutil.Factory, runF func(*LoginOptions) error) *cobra.Comm
|
|||
to writing the token to a plain text file. See %[1]sgh auth status%[1]s for its
|
||||
stored location.
|
||||
|
||||
Alternatively, use %[1]s--with-token%[1]s to pass in a token on standard input.
|
||||
Alternatively, use %[1]s--with-token%[1]s to pass in a personal access token (classic) on standard input.
|
||||
The minimum required scopes for the token are: %[1]srepo%[1]s, %[1]sread:org%[1]s, and %[1]sgist%[1]s.
|
||||
|
||||
Fine-grained personal access tokens are not supported.
|
||||
|
||||
Alternatively, gh will use the authentication token found in environment variables.
|
||||
This method is most suitable for "headless" use of gh such as in automation. See
|
||||
%[1]sgh help environment%[1]s for more info.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue