Registry
Aalexbit-codemod avatar

python-s7625-aws-long-term-keys-mining

Mine python:S7625: Long-term AWS access keys should not be used directly in code; read-only metrics with blocking severity

alexbit-codemod0 executions

  • mining
  • metrics
  • python
  • security
  • python:S7625
Connect a repo
npx codemod python-s7625-aws-long-term-keys-mining

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

bash
pnpm 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

bash
pnpm --filter ./codemods/python-security-mining/python-s7625-aws-long-term-keys-mining test

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.