scan
Run static-analysis engines (Semgrep, Gitleaks, ShellCheck, Ruff, Actionlint) on a git changeset or explicit file list, returning normalized findings as review leads to validate against current code.
Instructions
Run the applicable static-analysis engines (semgrep security rules, gitleaks secrets, shellcheck, ruff, actionlint) over a change set and return normalized findings. Findings are review LEADS, not verdicts: validate each against current code. Give either base (git ref; scans base...HEAD changed files, secrets over base..HEAD commits) or an explicit files list (repo-relative). A .leveret.yml profile in the repo (or profilePath) scopes engines by path and suppresses priced rules; suppressions come back tallied with their reasons, never silently.
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": "<repo>"
},
"name": "scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | git base ref, e.g. origin/devel | |
| repo | Yes | absolute path to the git repo / worktree to scan | |
| files | No | explicit repo-relative files | |
| engines | No | restrict to these engine ids (default: all applicable) | |
| profilePath | No | profile file overriding <repo>/.leveret.yml |