An NPM package which scans a given directory for the inclusion of AWS keys.
Requires
Node 8+
Installation
-
Install package
npm install --save-dev scan-for-secrets -
Add the script to package.json with the directory in which you want to scan for keys
"scripts" :"scan-for-secrets": "scan-for-secrets <directory-to-scan>"...... -
Add to pre-commit hook in package.json (optional)
"pre-commit":"scan-for-secrets"