Code Audit
code_auditScan source code for vulnerabilities and secrets using Semgrep and gitleaks, then generate structured JSON and Markdown audit reports.
Instructions
Run the white-box code audit over source in the engagement workspace.
Scans path (relative to the workspace, default source — the
directory source_fetch clones into) with Semgrep's parsing rules and
gitleaks, then writes a merged deliverable:
code-audit.json— structured, redacted records from both tools.code-audit.md— human-readable audit with attack-surface implications.
Semgrep hits are filed as CANDIDATE findings (reachability is a later question — static analysis finds sinks, not exploits). Gitleaks hits are redacted and kept in the deliverable only: unvalidated regex matches are not findings, and the secret-scanning phase owns that class.
With no source in the workspace the phase reports count: 0 — run
source_fetch(repo_url=...) first and confirm the repository belongs to
the program.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | source | |
| wait_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||