container-scanning

Scan container images for vulnerabilities and misconfigurations using Trivy and Grype.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/ToanPV90/dotfiles --skill container-scanning-toanpv90
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: container-scanning
Source: https://github.com/ToanPV90/dotfiles/tree/main/agents/.agents/skills/container-scanning
Command: npx skills add https://github.com/ToanPV90/dotfiles --skill container-scanning-toanpv90

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you identify vulnerabilities and risky security misconfigurations in container images so you can reduce breach risk and meet compliance requirements.

Core Features & Use Cases

  • Vulnerability scanning for images and filesystems: Use scanners like Trivy and Grype to assess base images, OS/library packages, and Dockerfile/Kubernetes configuration.
  • Policy enforcement for security gates: Define thresholds (e.g., block CRITICAL, warn HIGH) and integrate checks into CI/CD workflows.
  • Registry and platform scan integration: Use Docker Scout or cloud-native registry scanning (ECR/ACR/Artifact Registry) to leverage provider tooling.

Quick Start

Use the container-scanning skill to scan a Docker image for CRITICAL and HIGH issues and produce machine-readable results you can gate in CI.

Frequently Asked Questions about container-scanning

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

FAQPage Schema
How do I scan Docker images for vulnerabilities before pushing to a registry?

You can scan Docker images for vulnerabilities using tools like Trivy or Grype to assess base images and OS packages. This skill identifies security issues and misconfigurations in container images, producing machine-readable output to block deployments in CI.

Can I enforce security gates in CI/CD based on vulnerability severity thresholds?

Yes, you can enforce CI/CD security gates by defining severity thresholds such as blocking CRITICAL and warning HIGH issues. This skill applies policy enforcement to stop vulnerable container images from shipping through your automated workflows.

Does this container scanning approach work with Kubernetes workloads and Dockerfiles?

Yes, container scanning works with Kubernetes workloads and Dockerfiles. It identifies risky security misconfigurations in both container images and related infrastructure as code, ensuring your cloud-native deployments are hardened against breaches.

What is the best way to generate SARIF or JSON output for automated vulnerability enforcement?

The best way to generate SARIF or JSON output for automated vulnerability enforcement is using configurable scanners like Trivy and Grype. This skill produces CI-friendly formats that integrate directly into security gates for compliance hardening.

Can I use Docker Scout or cloud-native registry scanning for compliance hardening?

Yes, you can use Docker Scout or cloud-native registry scanning for compliance hardening. This skill leverages provider tooling to integrate checks into your existing container registry platform and enforce security policies across workloads.