scan_secrets_history
Scan Git history for leaked secrets, including removed commits, and flag each finding as active or removed so you know what needs rotation.
Instructions
Scan git history for leaked secrets. Finds secrets that were committed in the past — even if they were later removed. Marks each finding as 'active' (still in code) or 'removed' (in git history only, needs rotation).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "scan_secrets_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Repository root path | |
| format | No | Output format | markdown |
| max_commits | No | Maximum number of commits to scan |