Aalexbit-codemod

python-s2115-secure-db-password-mining

Mine python:S2115: A secure password should be used when connecting to a database; read-only metrics with blocking severity

miningmetricspythonsecuritypython:S2115
Public
0 executions

Run locally

npx codemod python-s2115-secure-db-password-mining

python-s2115-secure-db-password-mining

Read-only mining codemod for python:S2115: A secure password should be used when connecting to a database.

Emits python_security_finding metric rows with blocking severity. Source files are never modified.

Rule

  • ID: python:S2115
  • Severity: blocking
  • Remediation: Use environment variables or a secrets manager for database passwords

Usage

bash

Development

bash

Ready to contribute?

Build your own codemod and share it with the community.