1 parent a387b82 commit cddf1dcCopy full SHA for cddf1dc
1 file changed
.semgrep
@@ -0,0 +1,10 @@
1
+# .semgrep
2
+rules:
3
+ - id: hardcoded-password
4
+ pattern: password = "$PASS"
5
+ message: "Hardcoded password detected. Use environment variables or a secrets manager instead."
6
+ languages: [python]
7
+ severity: ERROR
8
+ metadata:
9
+ cwe: "CWE-798: Use of Hard-coded Credentials"
10
+ owasp: "A2: Broken Authentication"
0 commit comments