Skip to content

Find, verify, and analyze leaked credentials

[]bytes were being logged as b64ed string (#1255)

Dustin Decker97ce27153a37
diff --git a/pkg/sources/git/git.go b/pkg/sources/git/git.go
index 8337b37c4..32d8eb044 100644
--- a/pkg/sources/git/git.go
+++ b/pkg/sources/git/git.go
@@ -295,7 +295,7 @@ func CloneRepo(ctx context.Context, userInfo *url.Userinfo, gitUrl string, args
return "", nil, errors.New("clone command exited with no output")
}
if cloneCmd.ProcessState != nil && cloneCmd.ProcessState.ExitCode() != 0 {
- logger.V(1).Info("git clone failed", "output", output, "error", err)
+ logger.V(1).Info("git clone failed", "output", string(output), "error", err)
return "", nil, fmt.Errorf("could not clone repo: %s, %w", safeUrl, err)
}