generate_report
Generate a polished HTML security report from vulnerability scan results, including executive summary, vulnerability table, risk gauge, and actionable recommendations.
Instructions
Generate a polished HTML security report from scan results.
Accepts aggregated results from check_package and
analyze_reachability, and produces a self-contained HTML
report with executive summary, sortable vulnerability table,
risk gauge, and actionable recommendations.
The report is saved to disk and the path is returned.
Args:
results: List of PackageReport objects, each combining
a PackageCheckResult with an optional
ReachabilityResult.
project_name: Human-readable project name for the
report header.
ecosystem: One of PyPI, npm, Maven, or Gradle.
output_dir: Directory to save the report into.
Created if it does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | ||
| ecosystem | No | PyPI | |
| output_dir | No | .vulnpilot | |
| project_name | No | Project |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| high_count | No | ||
| report_html | Yes | ||
| report_path | Yes | ||
| normal_count | No | ||
| urgent_count | No | ||
| total_packages | Yes | ||
| immediate_count | No | ||
| vulnerable_packages | Yes | ||
| total_vulnerabilities | Yes |