Aalexbit-codemod

python-s6418-hardcoded-secrets-mining

Mine python:S6418: Secrets should not be hard-coded; read-only metrics with blocking severity

miningmetricspythonsecuritypython:S6418
Public
0 executions

Run locally

npx codemod python-s6418-hardcoded-secrets-mining

python-s6418-hardcoded-secrets-mining

Read-only mining codemod for python:S6418: Secrets should not be hard-coded.

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

Rule

  • ID: python:S6418
  • Severity: blocking
  • Remediation: Store secrets in environment variables or a secrets manager

Usage

bash

Development

bash

Ready to contribute?

Build your own codemod and share it with the community.