merge: chore/cleanup-remove-bloat-and-secrets into main
This commit is contained in:
commit
bde2f3a97d
1173 changed files with 437609 additions and 0 deletions
21
.semgrep/rules.yaml
Normal file
21
.semgrep/rules.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
rules:
|
||||
- id: rmi-print-prod
|
||||
pattern: print(...)
|
||||
message: "print() call - use logger.info() in production code"
|
||||
languages: [python]
|
||||
severity: WARNING
|
||||
paths:
|
||||
include: ["app/"]
|
||||
exclude: ["app/core/lifespan.py"]
|
||||
|
||||
- id: rmi-os-system-call
|
||||
pattern: os.system(...)
|
||||
message: "os.system() is dangerous. Use subprocess.run() with shell=False"
|
||||
languages: [python]
|
||||
severity: ERROR
|
||||
|
||||
- id: rmi-eval-detected
|
||||
pattern: eval(...)
|
||||
message: "eval() is a security risk. Never use eval() on user input"
|
||||
languages: [python]
|
||||
severity: ERROR
|
||||
Loading…
Add table
Add a link
Reference in a new issue