Skip to content

Commit f0a128a

Browse files
BagToadCopilot
andcommitted
feat(release): allow download without authentication
Downloading assets from a public repository's release works unauthenticated over REST, so drop the login gate. A token is still used when present. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 751dc5e commit f0a128a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/cmd/release/download/download.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ func NewCmdDownload(f *cmdutil.Factory, runF func(*DownloadOptions) error) *cobr
111111
cmd.Flags().BoolVar(&opts.OverwriteExisting, "clobber", false, "Overwrite existing files of the same name")
112112
cmd.Flags().BoolVar(&opts.SkipExisting, "skip-existing", false, "Skip downloading when files of the same name exist")
113113

114+
cmdutil.DisableAuthCheck(cmd)
115+
114116
return cmd
115117
}
116118

0 commit comments

Comments
 (0)