trivy_scan
Scan container images, filesystems, or repositories for vulnerabilities. Supports severity filtering and analysis of configs and SBOMs.
Instructions
Scan container images, filesystems, or repositories for vulnerabilities using Trivy.
Args: target: Docker image name (for image), local path (for fs/config/sbom), or repo URL (for repo). scan_type: Scan target type — image (Docker image), fs (filesystem), repo (git repo), config (IaC misconfigurations), sbom (SBOM analysis). severity: Comma-separated severity filter (e.g. "HIGH,CRITICAL" or "MEDIUM,HIGH,CRITICAL"). timeout: Override default timeout.
Returns: Structured vulnerability report with total counts by severity and top findings.
Note: - For image scans, the image must be pullable or already present locally. - Severity filter accepts: UNKNOWN, LOW, MEDIUM, HIGH, CRITICAL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| timeout | No | ||
| severity | No | HIGH,CRITICAL | |
| scan_type | No | image |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||