python-s6270-aws-public-resource-policy-mining
Read-only mining codemod for python:S6270: AWS resource-based policies should not grant public access.
Emits python_security_finding metric rows with blocking severity. Source files are never modified.
Rule
- ID:
python:S6270 - Severity: blocking
- Remediation: Remove Principal "" or AWS "" from resource policies
Usage
bashpnpm dlx codemod@latest workflow run -w codemods/python-security-mining/python-s6270-aws-public-resource-policy-mining/workflow.yaml --target /path/to/python/project
Development
bashpnpm --filter ./codemods/python-security-mining/python-s6270-aws-public-resource-policy-mining test