We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 631984f + e320d49 commit 85822a0Copy full SHA for 85822a0
checks/check_trufflehog.py
@@ -1,6 +1,7 @@
1
import json
2
import os
3
import strictyaml
4
+import sys
5
6
CREDS_FILE = ".devrev/creds.yml"
7
@@ -68,4 +69,12 @@ def check_trufflehog(json_path):
68
69
print(f"Found secret in {fn}:{line_num}")
70
return False
71
print("No secrets found")
- return True
72
+ return True
73
+
74
+if __name__ == "__main__":
75
+ if len(sys.argv) < 2:
76
+ print("Usage: python check_trufflehog.py <output.json>")
77
+ sys.exit(1)
78
79
+ json_path = sys.argv[1]
80
+ check_trufflehog(json_path)
0 commit comments