# sca-trivy

sca-trivy runs Aqua Trivy vulnerability audits on dependencies, container images, and IaC files, generating SBOMs and SARIF reports.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 1 install · ★ 228 repo stars
- Author: rohunj
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/rohunj/claude-build-workflow/tree/HEAD/skills/security/sca-trivy/SKILL.md
- Updated: 2026-01-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/sca-trivy

## What it does

This skill guides the coding agent through security scanning workflows powered by Aqua Trivy. It detects published CVE flaws across dependencies, scans file trees or manifests such as `package-lock.json`, and audits infrastructure configurations across Terraform, Kubernetes, and Dockerfile assets.

Workflows include container image assessments mapped against OWASP and CWE classifications, dependency triage by CVSS severity, pipeline automation for GitHub Actions or GitLab CI, and generating SBOM data using CycloneDX or SPDX JSON outputs. The skill also accounts for secret detection via `--scanners secret`.

Both `trivy` and `docker` must be present in the execution environment. The agent relies on invoking local CLI tooling, so missing binaries will halt execution.

## Requirements
- Works with: Kubernetes, Terraform

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add rohunj/claude-build-workflow --skill sca-trivy -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/sca-trivy/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/sca-trivy/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add rohunj/claude-build-workflow --skill sca-trivy -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/sca-trivy/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add rohunj/claude-build-workflow --skill sca-trivy -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/sca-trivy/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install rohunj/claude-build-workflow skills/security/sca-trivy
```

2. **Manually: put the files in place**
- File: `.github/skills/sca-trivy/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add rohunj/claude-build-workflow --skill sca-trivy -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/rohunj/claude-build-workflow --path skills/security/sca-trivy
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/sca-trivy/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add rohunj/claude-build-workflow --skill sca-trivy -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/rohunj/claude-build-workflow/tree/HEAD/skills/security/sca-trivy/SKILL.md

## When to use it
- audit dependencies for known high and critical CVEs
- scan container images for operating system and library flaws
- spot security misconfigurations in Terraform or Kubernetes manifests
- produce CycloneDX or SPDX SBOM files for supply chain tracking
- configure SARIF scanning jobs inside CI/CD pipelines

## Example prompts
- Scan the local filesystem dependencies with trivy focusing on CRITICAL and HIGH issues
- Generate a cyclonedx SBOM report for container image nginx:latest
- Review the ./terraform directory for IaC misconfigurations using trivy config

## Similar
- [devsecops-expert](https://affpapa.org/en/nevibecode/skills/devsecops-expert.md) — skill · 366 installs
- [container-image-hardening](https://affpapa.org/en/nevibecode/skills/container-image-hardening.md) — skill · 235 installs
- [security-devsecops](https://affpapa.org/en/nevibecode/skills/security-devsecops.md) — skill · 117 installs
- [sca-audit](https://affpapa.org/en/nevibecode/skills/sca-audit.md) — skill · 358 installs
- [sast-sca-security-analyzer](https://affpapa.org/en/nevibecode/agents/sast-sca-security-analyzer.md) — subagent · ★ 41430 repo stars
- [Draugr](https://affpapa.org/en/nevibecode/mcp/draugr.md) — MCP server · ★ 30 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
