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-cicdSKILL.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 equivalentimageRefStrategy: image naming/tagging approach (for example commit SHA tags)severityPolicy: threshold policy for fail/pass (for exampleCRITICAL,HIGH)scanTargets: image, filesystem, and config paths to scanregistryContext: source/target registry and credential modelexceptionPolicy(optional): approved ignore entries and expiry rulessbomFormat(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
- Define policy and gate behavior
- Set fail thresholds (
severityPolicy) and decide if unfixed vulnerabilities are excluded. - Define which branches/events require blocking scans.
- Build image deterministically
- Build image using reproducible tag strategy (for example
app:${sha}). - Preserve image identifier in logs and artifacts.
- 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.
- Run misconfiguration scan
- Execute Trivy config scan over Dockerfiles and infrastructure/config files in scope.
- Fail pipeline when policy-threshold findings are detected.
- Apply exception policy
- Load ignore entries from managed file/config.
- Enforce required rationale and expiry for each exception.
- Generate SBOM and optional secondary checks
- Produce SBOM in requested format.
- Optionally rescan SBOM or run license scanner to enrich decision context.
- Cache and resilience controls
- Configure DB caching for performance while preserving freshness constraints.
- Define offline/air-gapped fallback process when applicable.
- Aggregate and enforce gate
- Aggregate image + config scan outcomes.
- Block push/deploy on policy violation and emit concise remediation summary.
- 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
- SKILL.md in the repositoryCheckingworkflows/scanning-containers-with-trivy-in-cicd/SKILL.md
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
[](https://verified-skill.com/skills/devton/agentic-workflow-blueprint/scanning-containers-with-trivy-in-cicd)