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
bashpnpm dlx codemod@latest workflow run -w codemods/python-security-mining/python-s6418-hardcoded-secrets-mining/workflow.yaml --target /path/to/python/project
Development
bashpnpm --filter ./codemods/python-security-mining/python-s6418-hardcoded-secrets-mining test