scan_git_secrets
Scan a git repository's commit history to detect exposed credentials, API keys, and other secrets before they are exploited.
Instructions
Scan a git repository for leaked secrets in commit history.
Uses trufflehog to scan git history for credentials, API keys, and other secrets.
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": {
"repo_url": "<repo_url>",
"target_id": "<target_id>"
},
"name": "scan_git_secrets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_url | Yes | Git repository URL or local path. | |
| target_id | Yes | Identifier for the target. | |
| scope_exclude | No | Scope denylist patterns. | |
| scope_include | No | Scope allowlist patterns. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||