From b8b62e9339d451bd456285a2dbfaef6090ce7b74 Mon Sep 17 00:00:00 2001 From: Yves Galante Date: Thu, 4 Apr 2024 17:15:15 +0200 Subject: [PATCH] fix(auth): Fix ssh authentication --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e4dd4ee86..3af2ad3ac 100644 --- a/main.go +++ b/main.go @@ -572,7 +572,7 @@ func main() { if *flUsername == "" { // username and user@host URLs are validated as mutually exclusive if u, err := url.Parse(*flRepo); err == nil { // it may not even parse as a URL, that's OK - if u.User != nil { + if u.User != nil && u.Scheme != "ssh" { if user := u.User.Username(); user != "" { *flUsername = user }