API Key Leaks: Reducing The Attack Surface
Check the existence of a private key or AWS credentials before committing your changes in a GitHub repository.
Add these lines to your .pre-commit-config.yaml file.
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: detect-aws-credentials
- id: detect-private-key
Comments
No comments yet.