fix: trim whitespace from stdin password

When password is read from stdin (e.g. echo password | mark ...),
the trailing newline was included in the password string, causing
authentication to fail. Use strings.TrimSpace to strip it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Manuel Rüger 2026-03-13 01:13:57 +01:00
parent a481424f7b
commit a4ef890247

View File

@ -46,7 +46,7 @@ func GetCredentials(
) )
} }
password = string(stdin) password = strings.TrimSpace(string(stdin))
} }
if compileOnly && targetURL == "" { if compileOnly && targetURL == "" {