Skip to content

Commit 2db6c9a

Browse files
committed
throwing error code if issue found
1 parent ef847de commit 2db6c9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

truffleHog/truffleHog.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ def main():
5151
output = find_strings(args.git_url, args.since_commit, args.max_depth, args.output_json, args.do_regex, do_entropy, surpress_output=False)
5252
project_path = output["project_path"]
5353
shutil.rmtree(project_path, onerror=del_rw)
54+
if output["foundIssues"]:
55+
sys.exit(1)
56+
else:
57+
sys.exit(0)
5458

5559
def str2bool(v):
5660
if v == None:

0 commit comments

Comments
 (0)