trivy

Wrap the Trivy CLI to perform comprehensive container image vulnerability scanning, output results in SARIF format for integration with the GitHub Code Scanning API, and produce OCI artifact attestation.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "trivy" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1f76045d09aa07bb28f4f99902b77ed9397c375fe0e4631a27453441770fbc42. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/trivy-container-scanner-2 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Wrap the Trivy CLI to perform comprehensive container image vulnerability scanning, output results in SARIF format for integration with the GitHub Code Scanning API, and produce OCI artifact attestation.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Not specified in the source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: trivy
description: >-
  Scan containers, filesystems, and repos for vulnerabilities with Trivy. Use
  when a user asks to scan Docker images for CVEs, audit filesystem for secrets,
  check IaC for misconfigurations, or add security scanning to CI.
license: Apache-2.0
compatibility: 'Docker, Linux, macOS'
metadata:
  author: terminal-skills
  version: 1.0.0
  category: devops
  tags:
    - trivy
    - vulnerability
    - container
    - scanning
    - ci-cd

Trivy

Overview

Trivy is an open-source vulnerability scanner by Aqua Security. Scans container images, filesystems, git repos, and IaC for vulnerabilities, misconfigurations, and exposed secrets.

Instructions

Step 1: Install

brew install trivy

Step 2: Container Scanning

trivy image node:20-alpine
trivy image --severity CRITICAL,HIGH my-app:latest
trivy image --format json --output results.json my-app:latest

Step 3: Filesystem and Secret Scan

trivy fs .
trivy fs --scanners vuln,secret,misconfig .

Step 4: IaC Scanning

trivy config ./terraform/
trivy config ./k8s/

Guidelines

  • Free and open-source — no account needed.
  • Local vulnerability DB, updated automatically — scans are fast.
  • Supports SBOM generation (CycloneDX, SPDX) for compliance.
  • Use in CI to block deployments with critical CVEs.

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供容器镜像漏洞扫描、文件系统审计、IaC 配置检查等 DevOps 安全能力
  • 支持 SBOM 生成和 CI 集成,具有广泛受众的实用价值
Trigger Precision85/100

Highlights

  • 触发词覆盖容器扫描、CVE 检查、文件系统审计、IaC 配置检查、CI 集成等场景
  • 边界清晰,覆盖合理
Structure and Standards90/100

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

    文档结构缺少 When to Use 章节,影响用户快速理解使用场景

    Recommendation: 建议添加 When to Use 章节,明确说明适用场景和使用时机

  • 文档过长 Reported severity: Minor

    文档内容较长,可能影响用户阅读体验

    Recommendation: 建议适当精简文档内容,或增加目录导航

Highlights

  • Phase/步骤清晰(Install/Container Scanning/Filesystem and Secret Scan/IaC Scanning)
  • 有出口条件,含端到端示例,frontmatter 完整
Execution Reliability85/100

Highlights

  • 工具来源明确(Trivy CLI),参数正确
  • 覆盖主要异常(如 severity 过滤、format 输出),不可逆操作有确认机制
Evidence Verifiability (mean of the first four)86/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 32

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.