Disable auth check for gh extension install
Allow installing extensions without being authenticated. The install command can work with public repositories and local directories without requiring a login, so the auth gate is unnecessary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
f79cc02bdd
commit
3e0305d941
1 changed files with 1 additions and 0 deletions
|
|
@ -415,6 +415,7 @@ func NewCmdExtension(f *cmdutil.Factory) *cobra.Command {
|
|||
}
|
||||
cmd.Flags().BoolVar(&forceFlag, "force", false, "Force upgrade extension, or ignore if latest already installed")
|
||||
cmd.Flags().StringVar(&pinFlag, "pin", "", "Pin extension to a release tag or commit ref")
|
||||
cmdutil.DisableAuthCheck(cmd)
|
||||
return cmd
|
||||
}(),
|
||||
func() *cobra.Command {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue