From 3e0305d941ee3dab0857d367cd17e0b294db108c Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Wed, 15 Apr 2026 17:55:45 -0600 Subject: [PATCH] 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> --- pkg/cmd/extension/command.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cmd/extension/command.go b/pkg/cmd/extension/command.go index 057f91140..de6e29ab7 100644 --- a/pkg/cmd/extension/command.go +++ b/pkg/cmd/extension/command.go @@ -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 {