trivy-scan

Scan container images, filesystems, and repositories for vulnerabilities with Trivy.

1|1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/dennisonbertram/go-agent-harness --skill trivy-scan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trivy-scan
Source: https://github.com/dennisonbertram/go-agent-harness/tree/main/skills/trivy-scan
Command: npx skills add https://github.com/dennisonbertram/go-agent-harness --skill trivy-scan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates vulnerability scanning across container images, local filesystems, and repositories to identify security issues before deployment.

Core Features & Use Cases

  • Image, FS, and repo scanning with Trivy image, trivy fs, and trivy repo, including severity filtering and SARIF output.
  • CI/CD integration and automated reporting to enforce security gates in pipelines.
  • Use Case: Integrate vulnerability scanning into builds to fail on HIGH/CRITICAL findings and generate actionable reports.

Quick Start

Run a Trivy scan on your target image or filesystem to detect vulnerabilities.

Frequently Asked Questions about trivy-scan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan a container image for security vulnerabilities?

Vulnerability scanning for container images is performed using Trivy to identify and remediate security issues before deployment. You can run the Trivy image command against your target image to detect vulnerabilities and enforce security gates in your pipelines.

Can I fail a CI/CD pipeline if high severity vulnerabilities are found?

Yes, you can fail a CI/CD pipeline by integrating Trivy vulnerability scanning with severity filtering controls. The scan can be configured to break builds and stop deployment workflows upon detecting HIGH or CRITICAL security findings.

How do I generate SARIF reports for filesystem vulnerability scans?

Filesystem vulnerability scans generate SARIF output using the Trivy fs command. This standardized reporting format captures security findings from local repositories and file systems, producing actionable reports for compliance needs and automated security audits.

What is the best way to scan a local filesystem for vulnerabilities before deployment?

The best way to scan a local filesystem is using the Trivy fs command to identify security vulnerabilities. This approach detects issues in local directories and repositories, allowing you to apply severity filtering and remediate findings before deployment.

Does Trivy vulnerability scanning work for both container images and git repositories?

Trivy vulnerability scanning supports container images, filesystems, and git repositories using specific commands. It covers image, fs, and repo scanning with severity controls and SARIF output to meet diverse scanning and compliance requirements.

Why do I need to install Trivy to scan my repository for vulnerabilities?

Installing Trivy is required to execute repository vulnerability scans and identify security issues. The tooling provides standardized installation guidance and enforces requirements to properly run trivy repo commands and generate accurate security findings.