Skip to content

Comments

Claude/add trivy scanning h0 thn#5

Merged
miragecentury merged 9 commits intomainfrom
claude/add-trivy-scanning-H0Thn
Feb 19, 2026
Merged

Claude/add trivy scanning h0 thn#5
miragecentury merged 9 commits intomainfrom
claude/add-trivy-scanning-H0Thn

Conversation

@miragecentury
Copy link
Contributor

No description provided.

claude and others added 7 commits February 19, 2026 20:58
The 'oci-archive:' prefix is not a valid image reference for
'trivy image'. Use --input flag to specify the local archive path.

https://claude.ai/code/session_01UQCFLkpP9z23jGo7zgAjvB
Co-authored-by: Cursor <cursoragent@cursor.com>
…builds

- Add reusable validate.yaml: hadolint + build-and-scan (buildah, dive, trivy)
- CI: call validate workflow instead of duplicating hadolint/build jobs
- Release: gate semantic-release behind validate; build-and-push only builds and pushes (no re-scan)

Co-authored-by: Cursor <cursoragent@cursor.com>
Trivy expects Docker-format tar (manifest.json); buildah oci-archive
uses OCI layout (index.json). Scan the image already loaded for dive
instead of --input tar to avoid format mismatch.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Add .trivyignore with known base-image vulnerabilities (ubuntu, node, dotnet, go)
  and expiration dates for re-evaluation on runner upgrades
- Use --ignorefile .trivyignore in validate workflow and builder.sh trivy scan
- Document inherited base-image vulns and .trivyignore in README (base image + Security)

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
- Add --ignore-unfixed and --pkg-types library to Trivy in builder
  and validate workflow
- Do not report base-image OS packages; keep .trivyignore for any
  remaining base-origin library findings
- Simplify .trivyignore expiration format (date only)
- Update README base image, pipeline, and Security sections

Co-authored-by: Cursor <cursoragent@cursor.com>
@miragecentury miragecentury force-pushed the claude/add-trivy-scanning-H0Thn branch from 81fb8cd to 95e6041 Compare February 19, 2026 23:08
miragecentury and others added 2 commits February 20, 2026 00:15
- Add --scanners vuln to disable secret scanning (faster)
- Add --skip-dirs /home/runner/externals to skip base Node/npm tree

Co-authored-by: Cursor <cursoragent@cursor.com>
- Skip dockerd and docker-buildx (base image) via --skip-files/--skip-dirs
- Add .trivyignore for dive, argo, kargo, pack, yq CVEs (exp 2026-08-19)

Co-authored-by: Cursor <cursoragent@cursor.com>
@miragecentury miragecentury merged commit b983641 into main Feb 19, 2026
3 checks passed
@miragecentury miragecentury deleted the claude/add-trivy-scanning-H0Thn branch February 19, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants