diff --git a/pkg/sources/git/git.go b/pkg/sources/git/git.go index 4f38c399d57f..45045995fc5c 100644 --- a/pkg/sources/git/git.go +++ b/pkg/sources/git/git.go @@ -660,7 +660,9 @@ func stripPassword(u string) (string, error) { return "", errors.WrapPrefix(err, "repo remote cannot be sanitized as URI", 0) } - return repoURL.Redacted(), nil + repoURL.User = nil + + return repoURL.String(), nil } // TryAdditionalBaseRefs looks for additional possible base refs for a repo and returns a hash if found.