{
  "name": "trivy-scan",
  "title": "Scan for vulnerabilities with Trivy",
  "description": "Scan a container image or a filesystem path for known vulnerabilities with Trivy, optionally failing the step on findings.",
  "category": "CI/CD",
  "tags": [
    "ci-cd",
    "trivy"
  ],
  "latestVersion": "1.0.3",
  "versions": [
    "1.0.3",
    "1.0.2",
    "1.0.1",
    "1.0.0"
  ],
  "parameters": [
    "target",
    "exit-on-findings",
    "severity"
  ],
  "images": [
    "aquasec/trivy@sha256:790fd66d1697395d8693d1acaa1ea702406a20f109b6fc7bac8db623eca6c06c"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/trivy-scan.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/trivy-scan/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/trivy-scan/",
  "entrypoint": "scan",
  "parameterDetails": [
    {
      "name": "target",
      "title": "Target",
      "description": "An image reference or a filesystem path to scan.",
      "type": "string",
      "required": true,
      "example": "ghcr.io/org/app:1.2.3"
    },
    {
      "name": "exit-on-findings",
      "title": "Fail on findings",
      "description": "When \"true\", the step fails if any matching vulnerability is found; when \"false\", it always reports and succeeds.",
      "type": "string",
      "required": false,
      "default": "true",
      "enum": [
        "true",
        "false"
      ]
    },
    {
      "name": "severity",
      "title": "Severity",
      "description": "Comma-separated severities to report.",
      "type": "string",
      "required": false,
      "default": "CRITICAL,HIGH",
      "example": "CRITICAL,HIGH"
    }
  ],
  "imageDetails": [
    {
      "ref": "aquasec/trivy@sha256:790fd66d1697395d8693d1acaa1ea702406a20f109b6fc7bac8db623eca6c06c",
      "repository": "aquasec/trivy",
      "tag": "0.76.1",
      "digest": "sha256:790fd66d1697395d8693d1acaa1ea702406a20f109b6fc7bac8db623eca6c06c"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.3",
      "date": "2026-08-18",
      "notes": "Move trivy from 0.73.0 to 0.74.0. The image scans clean, so its exception record is deleted rather than rewritten: the go-git and oras-go advisories it was written for are gone, and so are the eight Go 1.26.6 stdlib ones that had landed on 0.73.0 since. Entrypoint, Cmd, User and WorkingDir are identical on both digests. This is a minor rather than a rebuild, so the CLI surface has not been re-run against a container.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/trivy-scan/1.0.3.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/trivy-scan/1.0.3/template.yaml"
    },
    {
      "version": "1.0.2",
      "date": "2026-08-11",
      "notes": "Move trivy from 0.72.0 to 0.73.0. Clears all 9 fixable OS advisories and takes the vendored ones from 6 to 2. The minor changes no CLI surface: image mode, fs mode, --severity and --exit-code all behave identically on both digests, exit code included.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/trivy-scan/1.0.2.json"
    },
    {
      "version": "1.0.1",
      "date": "2026-08-02",
      "notes": "Move trivy from 0.58.1 to 0.72.0. Fixable CRITICAL/HIGH drops from 91 to 11. Worth doing on its own terms too: the scanner this item sells was fourteen minor releases behind.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/trivy-scan/1.0.1.json"
    },
    {
      "version": "1.0.0",
      "date": "2026-07-17",
      "notes": "Initial release.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/trivy-scan/1.0.0.json"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/trivy-scan",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
