Skip to content

Find, verify, and analyze leaked credentials

use stringer again for now (#1430)

Zachary Rice4a77688097d8
diff --git a/pkg/sources/git/git.go b/pkg/sources/git/git.go
index 4f38c399d..45045995f 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.