Skip to content

Commit d976aa5

Browse files
committed
fix: do not log in to registry with empty credentials
1 parent 7cacf18 commit d976aa5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cmd/helm/release/release.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func (o *Options) oCIRegistry(repoURL, chartDir, name string) error {
335335
return errors.Wrapf(err, "failed to package chart")
336336
}
337337

338-
if !o.NoOCILogin {
338+
if !o.NoOCILogin && o.RepositoryUsername != "" {
339339
c = &cmdrunner.Command{
340340
Dir: chartDir,
341341
Name: o.HelmBinary,

0 commit comments

Comments
 (0)