From b6910713cc5bb0638113ef99b7a0abb82e80f3b5 Mon Sep 17 00:00:00 2001 From: Kris McGinnes Date: Mon, 16 Nov 2026 17:55:08 -0600 Subject: [PATCH] Fail release branch image builds on CRITICAL findings only A release branch only takes a patch for a CRITICAL finding. Pull requests into main still fail on MEDIUM and up. --- .github/workflows/test_build_docker.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_build_docker.yml b/.github/workflows/test_build_docker.yml index d83cc6180..93ec43067 100644 --- a/.github/workflows/test_build_docker.yml +++ b/.github/workflows/test_build_docker.yml @@ -37,7 +37,9 @@ jobs: uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0 with: image-ref: test-image - severity: MEDIUM,HIGH,CRITICAL + # A release branch only takes a patch for a CRITICAL finding, so its + # pull requests fail on CRITICAL alone. main fails on MEDIUM and up. + severity: ${{ github.event_name == 'pull_request' && github.base_ref != 'main' && 'CRITICAL' || 'MEDIUM,HIGH,CRITICAL' }} ignore-unfixed: true exit-code: 1