Configures and runs Trivy for container image scanning: Aqua Security's all-in-one scanner combining vuln + secret + misconfiguration + license detection in one pass; `trivy image {image}` with --severity HIGH,CRITICAL filter; --format sarif/json (incl. scan-embedded CycloneDX; for standalone SBOM generation see syft-generation + cyclonedx-format); .trivyignore CVE suppression file; --ignore-unfixed for actionable filter; --scanners vuln/misconfig/license/secret toggle. Use when the team wants a single tool covering container image security across multiple dimensions, not for producing a standalone CycloneDX SBOM.
75
94%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Medium
Suggest reviewing before use
Extracted from trivy-image. The SKILL.md spine keeps the scan commands
inline; the full CI workflow and the sister-tool composition table live here.
jobs:
trivy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- run: docker build -t my-app:${{ github.sha }} .
- uses: aquasecurity/trivy-action@master
with:
image-ref: my-app:${{ github.sha }}
format: sarif
output: trivy.sarif
severity: CRITICAL,HIGH
ignore-unfixed: true
exit-code: 1
- uses: github/codeql-action/upload-sarif@v3
if: always()
with: { sarif_file: trivy.sarif }The aquasecurity/trivy-action GHA wraps the CLI plus SARIF upload.
| Sister tool | Use |
|---|---|
syft-generation | Generates standalone SBOM (Trivy embeds SBOM gen but exposes it less) |
grype-scanning | Alternative scanner; cross-DB consensus on findings |
cyclonedx-format, spdx-format | Reference for the SBOM formats Trivy outputs |
checkov-policy | Cross-plugin: deeper IaC scanning vs Trivy's image-internal misconfig |