Skip to content

Commit

Permalink
Add logic to error out if there are non-zero findings (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacoburn authored Oct 9, 2024
1 parent 974d302 commit f036099
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/socket_external_tools_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@ def load_json(name, connector: str, connector_type: str = 'single') -> dict:

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

0 comments on commit f036099

Please sign in to comment.