secret_scanner__scan_directory
Scan a directory recursively for exposed secrets and API keys, skipping node_modules, .git, dist, and binary files to reduce noise.
Instructions
Recursively scan a directory for exposed secrets and API keys. Automatically skips node_modules, .git, dist, and binary files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the directory to scan | |
| entropy | No | Also flag random-looking values assigned to secret-like names (default true) | |
| exclude | No | Skip files/dirs whose path contains one of these strings | |
| include | No | Only scan files whose path contains one of these strings (e.g. [".env", ".ts"]) | |
| baseline | No | Path to a baseline file: only findings not in it are reported | |
| maxFiles | No | Maximum number of files to scan (default: 5000) |