Skip to content

Phase 4: add Trivy CI security gate#2

Merged
MetaMaaz merged 2 commits into
mainfrom
phase-4-ci
Jun 23, 2026
Merged

Phase 4: add Trivy CI security gate#2
MetaMaaz merged 2 commits into
mainfrom
phase-4-ci

Conversation

@MetaMaaz

Copy link
Copy Markdown
Owner

Adds a CI security gate so the pipeline scans every push and PR automatically.

What this does

  • New workflow .github/workflows/security.yml runs on every push and pull request.
  • Builds the hardened image (Dockerfile.v4-distroless), then scans it with aquasecurity/trivy-action.
  • Fails the build (exit-code: 1) on any CRITICAL or HIGH vulnerability.
  • ignore-unfixed: true so the gate only blocks on CVEs that actually have a fix available — unfixable base-OS DoS CVEs don't create permanent red builds.

Why

Turns the project from a one-time hardening exercise into an enforced policy: no image with a fixable critical/high vuln can merge to main without the check going red.

@MetaMaaz
MetaMaaz merged commit 9821089 into main Jun 23, 2026
2 checks passed
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.

1 participant