Skip to content

Restore Trivy gate to exit-code: "1" in gke-images workflow #165

Description

@dantaik

Context

The Trivy scan steps in .github/workflows/gke-images.yml are currently report-only (exit-code: "0") so CVE findings upload SARIF to GitHub Security but don't fail the build. This was a deliberate, documented softening (commit 76eb6f9, PR #162) so we could ship v2.2.0 — the gate was blocking every release due to upstream CVE-DB growth (litestream Go stdlib, devDep CVEs) on code that was identical to what was running in production.

The softening is intended to be temporary. This issue tracks restoring the blocking gate.

Prerequisites

This issue is gated on:

After both land, re-run a build and verify the SARIF in GitHub Security drops below the gate's tolerance.

Acceptance criteria

Why this matters

A blocking SCA gate is one of our supply-chain controls. Leaving it report-only means a real CVE introduction in app code wouldn't auto-block a deploy.

Pointers

  • Workflow: .github/workflows/gke-images.yml:156-191
  • Softening commit: 76eb6f9 (PR ci(gke-images): make Trivy scan report-only #162). Read the commit message — it documents the policy.
  • Trivy SARIF baseline for v2.2.0: GitHub Security tab → trivy-hub and trivy-watchtower categories.

Severity

Medium — supply-chain control. Not currently exploitable, but the SCA gate is a defense-in-depth measure that should be restored as soon as the prerequisite CVE cleanup lands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions