Skip to content

Commit b2d17b2

Browse files
committed
Update vuln.go
1 parent 50ddc63 commit b2d17b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/vuln.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ $ gitrepoenum vuln -i ~/allgithubrepo/commits -o ~/allgithubrepo/commits`,
4747
}
4848

4949
// Run TruffleHog on the current repository
50-
trufflehogCmd := exec.Command("trufflehog", "filesystem", repoPath)
51-
trufflehogOutputFile := filepath.Join(vulnOutputPath, "trufflehog.txt")
50+
trufflehogCmd := exec.Command("trufflehog", "filesystem", "--json", repoPath)
51+
trufflehogOutputFile := filepath.Join(vulnOutputPath, "trufflehog.json")
5252

5353
// Redirect output to the output file
5454
outputFile, err := os.Create(trufflehogOutputFile)

0 commit comments

Comments
 (0)