Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion checks/check_trufflehog.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
import os
import strictyaml
import sys

CREDS_FILE = ".devrev/creds.yml"

Expand Down Expand Up @@ -68,4 +69,12 @@ def check_trufflehog(json_path):
print(f"Found secret in {fn}:{line_num}")
return False
print("No secrets found")
return True
return True

if __name__ == "__main__":
if len(sys.argv) < 2:
print("Usage: python check_trufflehog.py <output.json>")
sys.exit(1)

json_path = sys.argv[1]
check_trufflehog(json_path)