Skip to content

ci: auto-suppress unfixed CVEs, trim trivyignore to exporter Go CVEs - #41

Merged
gifi71 merged 1 commit into
mainfrom
chore/trivyignore-cleanup
Jun 21, 2026
Merged

gifi71 merged 1 commit into
mainfrom
chore/trivyignore-cleanup

Conversation

@gifi71

@gifi71 gifi71 commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Restores a green Trivy scan after the vuln DB picked up new 2026 CVEs in Debian-12 packages that have no upstream fix. (Re-created from #40, which auto-closed when its stacked base feat/ocserv-1.5.0 merged.)

Changes

  • ignore-unfixed: true on the gating Trivy step — CVEs with no fix in Debian 12 (perl, ncurses, libssh2, libcurl, zlib, openldap, …) no longer break CI. The SARIF step keeps reporting everything for the Security tab.
  • .trivyignore trimmed to only the criteo/ocserv-exporter Go stdlib CVEs. These have an upstream fix (newer Go) but ship in the pre-built v0.2.2 binary (Go 1.25.4), so ignore-unfixed does not cover them.
  • Dropped: zlib/openldap/glibc entries (now covered by ignore-unfixed) and two stale Go CVEs that no longer fire (CVE-2025-61728, CVE-2025-61730).

Why not Debian 13 (trixie)

Measured: trixie-slim (13.5, latest stable) still carries the 2 perl CRITICALs + ncurses CVE (all fix_deferred upstream) and adds 2 sqlite CVEs. No net benefit, plus migration risk. Staying on bookworm.

Tracking

Exporter Go CVEs tracked for a from-source rebuild in #39.

Verified locally

trivy --ignore-unfixed with the new .trivyignore0 HIGH/CRITICAL on the built 1.5.0 image (debian 0, gobinary 0).

The Trivy scan started failing as new 2026 CVEs landed in the vuln DB for
packages that have no fix in Debian 12 (perl, ncurses, libssh2, libcurl,
plus the existing zlib/openldap).

- add 'ignore-unfixed: true' to the gating Trivy step so CVEs with no
  upstream fix no longer break CI; the SARIF step keeps full visibility in
  the Security tab
- drop zlib/openldap/glibc entries from .trivyignore (now covered by
  ignore-unfixed) and the two Go CVEs that no longer fire (CVE-2025-61728,
  CVE-2025-61730)
- .trivyignore now lists only the criteo/ocserv-exporter Go stdlib CVEs,
  which DO have an upstream fix but ship in the pre-built v0.2.2 binary
  (Go 1.25.4); tracked for a source rebuild in #39

Verified locally: trivy --ignore-unfixed with the new .trivyignore reports
0 HIGH/CRITICAL on the built 1.5.0 image.
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