Repository Security Review
When to Use
Use this capability for a source repository, pull request, or AI-generated project where dependency, secret, configuration, and architecture risks need to be correlated instead of treated as raw scanner output.
Prerequisites
- Authorized access to the repository and its build configuration.
- Python 3.10+ for AgentSec.
- A clean or intentionally scoped working tree.
Workflow
- Run
./agentsec repo . --scan-mode standard. - Read
.agentsec/architecture-latest.jsonbefore opening broad source areas. - Correlate dependency, secret, and source-security evidence with the actual trust boundary.
- Separate confirmed vulnerabilities, design gaps, opportunities, and review-needed items.
- Apply the smallest compatible remediation and rerun the focused check.
Verification
Confirm that the report contains summary.json, findings.json, findings.sarif, and preserved raw evidence. Re-run project tests and verify that each changed finding has a new evidence-backed result.