mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
quick patch for cfor enumeration (#3155)
Co-authored-by: Joe Leon <joe.leon@trufflesec.com>
This commit is contained in:
parent
fe9ac9d0bf
commit
f927076483
1 changed files with 6 additions and 0 deletions
|
@ -640,6 +640,12 @@ func (s *Source) EnumerateAndScanAllObjects(ctx context.Context, chunksChan chan
|
|||
// Guess all possible commit hashes
|
||||
processCommits(ctx, possibleCommits, owner, repoName, folderPath)
|
||||
|
||||
// Read in the new commits
|
||||
validHiddenCommits, err = readCommitsFromDisk(validHiddenCommit, folderPath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to read valid hidden commits from disk: %w", err)
|
||||
}
|
||||
|
||||
// Download commit hashes and checkout into branches (only way scanner will pick them up)
|
||||
err = downloadPatches(validHiddenCommits, path)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue