Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Show clone path for git repos (#823)
Dustin Decker752c84864045
diff --git a/pkg/sources/git/git.go b/pkg/sources/git/git.goindex 0b56aef23..81ee67c19 100644--- a/pkg/sources/git/git.go+++ b/pkg/sources/git/git.go@@ -252,6 +252,7 @@ func CloneRepo(userInfo *url.Userinfo, gitUrl string, args ...string) (clonePatherr = errors.WrapPrefix(err, "could not open cloned repo", 0)return}+ log.WithField("clone_path", clonePath).WithField("repo", gitUrl).Debug("cloned repo")return}@@ -300,7 +301,7 @@ func (s *Git) ScanCommits(ctx context.Context, repo *git.Repository, path stringvar depth int64var reachedBase = false- log.Debugf("Scanning repo")+ log.WithField("repo", urlMetadata).Debugf("Scanning repo")for commit := range commitChan {log.Debugf("Scanning commit %s", commit.Hash)if scanOptions.MaxDepth > 0 && depth >= scanOptions.MaxDepth {