devton/agentic-workflow-blueprint/scanning-containers-with-trivy-in-cicd

Claude Code and agent skill by devton/agentic-workflow-blueprint

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install devton/agentic-workflow-blueprint/scanning-containers-with-trivy-in-cicd

SKILL.md

agentic-workflows-blueprint.workflow.scanning-containers-with-trivy-in-cicd

Goal

Implement a CI/CD-native container scanning workflow using Trivy that blocks vulnerable images and misconfigurations from promotion based on deterministic severity gates.

Scope
  • Applies to: containerized applications built and promoted through CI/CD pipelines.
  • Does not cover: runtime workload protection, host IDS, or live container behavioral monitoring.
Triggers
  • "Add Trivy scan to CI/CD pipeline"
  • "Block container releases with critical/high CVEs"
  • "Generate SBOM and gate image promotion"
  • "Scan Dockerfiles/manifests in pull requests"
Inputs
  • cicdPlatform: GitHub Actions, GitLab CI, Jenkins, or equivalent
  • imageRefStrategy: image naming/tagging approach (for example commit SHA tags)
  • severityPolicy: threshold policy for fail/pass (for example CRITICAL,HIGH)
  • scanTargets: image, filesystem, and config paths to scan
  • registryContext: source/target registry and credential model
  • exceptionPolicy (optional): approved ignore entries and expiry rules
  • sbomFormat (optional): CycloneDX or SPDX
Invariants
  • No image promotion to protected environments without a successful scan gate.
  • Severity gate policy is explicit and versioned in pipeline configuration.
  • Ignore/exception entries must include rationale and expiry.
  • Scan artifacts must be retained for auditing and trend analysis.
  • Trivy DB freshness/caching policy must be explicit to avoid stale assessments.
Procedure
  1. Define policy and gate behavior
  • Set fail thresholds (severityPolicy) and decide if unfixed vulnerabilities are excluded.
  • Define which branches/events require blocking scans.
  1. Build image deterministically
  • Build image using reproducible tag strategy (for example app:${sha}).
  • Preserve image identifier in logs and artifacts.
  1. Run vulnerability scan on image
  • Execute Trivy image scan with configured severity threshold and non-zero exit on violation.
  • Publish machine-readable output (JSON/SARIF) for downstream consumers.
  1. Run misconfiguration scan
  • Execute Trivy config scan over Dockerfiles and infrastructure/config files in scope.
  • Fail pipeline when policy-threshold findings are detected.
  1. Apply exception policy
  • Load ignore entries from managed file/config.
  • Enforce required rationale and expiry for each exception.
  1. Generate SBOM and optional secondary checks
  • Produce SBOM in requested format.
  • Optionally rescan SBOM or run license scanner to enrich decision context.
  1. Cache and resilience controls
  • Configure DB caching for performance while preserving freshness constraints.
  • Define offline/air-gapped fallback process when applicable.
  1. Aggregate and enforce gate
  • Aggregate image + config scan outcomes.
  • Block push/deploy on policy violation and emit concise remediation summary.
  1. Verification and reporting
  • Test gate with a known-vulnerable sample image.
  • Confirm clean image path passes and retains artifacts.
Outputs
  • CI/CD pipeline steps for Trivy image/config scanning.
  • Vulnerability scan reports (JSON/SARIF/table as configured).
  • SBOM artifact for scanned image.
  • Gate decision summary (PASS/FAIL) with actionable findings.
  • Exception register entries with rationale and expiration.
Review gate
  • [ ] Image scan blocks findings above configured severity threshold.
  • [ ] Misconfiguration scan enforces the same policy rigor as image scan.
  • [ ] SBOM is generated and retained for audited builds.
  • [ ] Exception handling is traceable and time-bounded.
  • [ ] Pipeline blocks promotion when gate fails.
References
  • ../../SKILL.md
  • ../implementing-devsecops-security-scanning/SKILL.md
  • ../review/SKILL.md

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
72
Repository forks
4
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/devton/agentic-workflow-blueprint/scanning-containers-with-trivy-in-cicd/badge)](https://verified-skill.com/skills/devton/agentic-workflow-blueprint/scanning-containers-with-trivy-in-cicd)

Something wrong with this skill or its page? Tell us.