python-s6418-hardcoded-secrets-mining
Mine python:S6418: Secrets should not be hard-coded; read-only metrics with blocking severity
# 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
pnpm dlx codemod@latest workflow run -w codemods/python-security-mining/python-s6418-hardcoded-secrets-mining/workflow.yaml --target /path/to/python/project
```
## Development
```bash
pnpm --filter ./codemods/python-security-mining/python-s6418-hardcoded-secrets-mining test
```