Merge pull request #10186 from cli/wm/clear-up-fine-grained-pats-auth-login
Clear up --with-token fine grained PAT usage
This commit is contained in:
commit
40984d1eb6
1 changed files with 3 additions and 2 deletions
|
|
@ -70,8 +70,9 @@ func NewCmdLogin(f *cmdutil.Factory, runF func(*LoginOptions) error) *cobra.Comm
|
|||
|
||||
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.
|
||||
Take care when passing a fine-grained personal access token to %[1]s--with-token%[1]s
|
||||
as the inherent scoping to certain resources may cause confusing behaviour when interacting with other
|
||||
resources. Favour setting %[1]sGH_TOKEN$%[1]s for fine-grained personal access token usage.
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue