From b62204054f75ea3e2b037c37f96f9ef94361ebdc Mon Sep 17 00:00:00 2001 From: "Philipp C. Heckel" Date: Fri, 3 Mar 2023 07:15:39 -0500 Subject: [PATCH 1/2] Update 1_bug_report.md --- .github/ISSUE_TEMPLATE/1_bug_report.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/1_bug_report.md b/.github/ISSUE_TEMPLATE/1_bug_report.md index 923b23d7..90ff2b27 100644 --- a/.github/ISSUE_TEMPLATE/1_bug_report.md +++ b/.github/ISSUE_TEMPLATE/1_bug_report.md @@ -2,7 +2,7 @@ name: 🐛 Bug Report about: Report any errors and problems title: '' -labels: 'bug' +labels: '🪲 bug' assignees: '' --- From 9d42ee93915caded17703c1cc8ef1f5ea7541bac Mon Sep 17 00:00:00 2001 From: Alexandre Oliveira Date: Fri, 3 Mar 2023 17:49:18 +0100 Subject: [PATCH 2/2] Fix publish command preferring default user instead of token auth Closes #650 --- cmd/publish.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/publish.go b/cmd/publish.go index aff80656..21578d34 100644 --- a/cmd/publish.go +++ b/cmd/publish.go @@ -171,7 +171,7 @@ func execPublish(c *cli.Context) error { fmt.Fprintf(c.App.ErrWriter, "\r%s\r", strings.Repeat(" ", 20)) } options = append(options, client.WithBasicAuth(user, pass)) - } else if conf.DefaultUser != "" && conf.DefaultPassword != nil { + } else if token == "" && conf.DefaultUser != "" && conf.DefaultPassword != nil { options = append(options, client.WithBasicAuth(conf.DefaultUser, *conf.DefaultPassword)) } if pid > 0 {