python-s7625-aws-long-term-keys-mining
Read-only mining codemod for python:S7625: Long-term AWS access keys should not be used directly in code.
Emits python_security_finding metric rows with blocking severity. Source files are never modified.
Rule
- ID:
python:S7625 - Severity: blocking
- Remediation: Use IAM roles, instance profiles, or short-lived credentials
Usage
bashpnpm dlx codemod@latest workflow run -w codemods/python-security-mining/python-s7625-aws-long-term-keys-mining/workflow.yaml --target /path/to/python/project
Development
bashpnpm --filter ./codemods/python-security-mining/python-s7625-aws-long-term-keys-mining test