Skip to content

Commit 85822a0

Browse files
authored
Merge pull request #13 from devrev/jro/fix_trufflehog
Actually run the check.
2 parents 631984f + e320d49 commit 85822a0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

checks/check_trufflehog.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import json
22
import os
33
import strictyaml
4+
import sys
45

56
CREDS_FILE = ".devrev/creds.yml"
67

@@ -68,4 +69,12 @@ def check_trufflehog(json_path):
6869
print(f"Found secret in {fn}:{line_num}")
6970
return False
7071
print("No secrets found")
71-
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

Comments
 (0)