Skip to content

Commit cddf1dc

Browse files
committed
Add .semgrep file
1 parent a387b82 commit cddf1dc

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.semgrep

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)