Skip to content

Commit f036099

Browse files
authored
Add logic to error out if there are non-zero findings (#10)
1 parent 974d302 commit f036099

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/socket_external_tools_runner.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,7 @@ def load_json(name, connector: str, connector_type: str = 'single') -> dict:
6161

6262
scm.github.post_comment(tool_bandit_name, bandit_marker, bandit_result)
6363
scm.github.post_comment(tool_gosec_name, gosec_marker, gosec_result)
64-
scm.github.post_comment(tool_trufflehog_name, trufflehog_marker, truffle_result)
64+
scm.github.post_comment(tool_trufflehog_name, trufflehog_marker, truffle_result)
65+
if bandit_result is not None or gosec_result is not None or truffle_result is not None:
66+
print("Issues detected with Security Tools. Please check PR comments")
67+
exit(1)

0 commit comments

Comments
 (0)