Update pkg/cmd/auth/login/login.go

Co-authored-by: Andy Feller <andyfeller@github.com>
This commit is contained in:
William Martin 2025-01-06 17:21:02 +01:00 committed by GitHub
parent 3695bda637
commit e7d49fb78c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,9 +69,9 @@ func NewCmdLogin(f *cmdutil.Factory, runF func(*LoginOptions) error) *cobra.Comm
stored location.
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. Although
it is possible to pass a fine-grained personal access token to %[1]s--with-token%[1]s, it should be done with
care, as the inherent scoping to certain resources may cause confusing behaviour when interacting with other
The minimum required scopes for the token are: %[1]srepo%[1]s, %[1]sread:org%[1]s, and %[1]sgist%[1]s.
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.