secret_scanner__scan_git
Scan staged changes or commit history for secrets in added lines, catching credentials removed from files but still present in git history.
Instructions
Scan a git repository for secrets in what git says was added: the staged changes (before a commit) or every commit's added lines (history). History finds secrets that were deleted from the files but are still in the repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | staged: lines added in the index; history: lines added by each commit | |
| path | Yes | A directory inside the git repository | |
| range | No | History only: a revision range such as main..HEAD (default: all refs) | |
| entropy | No | Also flag random-looking values assigned to secret-like names (default true) | |
| baseline | No | Path to a baseline file: only findings not in it are reported | |
| maxCommits | No | History only: stop after this many commits |