python-s6779-flask-secret-key-mining
Mine python:S6779: Flask secret keys should not be disclosed; read-only metrics with blocking severity
# python-s6779-flask-secret-key-mining
Read-only mining codemod for **python:S6779**: Flask secret keys should not be disclosed.
Emits `python_security_finding` metric rows with **blocking** severity. Source files are never modified.
## Rule
- **ID**: `python:S6779`
- **Severity**: blocking
- **Remediation**: Load Flask secret keys from environment variables or a secrets manager
## Usage
```bash
pnpm dlx codemod@latest workflow run -w codemods/python-security-mining/python-s6779-flask-secret-key-mining/workflow.yaml --target /path/to/python/project
```
## Development
```bash
pnpm --filter ./codemods/python-security-mining/python-s6779-flask-secret-key-mining test
```