From 3ae2d2dee57e9052a359ba8ad3ac807bf2edc8c3 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 11 Mar 2026 19:49:03 +0000 Subject: [PATCH] Fix Trivy: run directly via docker instead of action to avoid exit code issues --- .github/workflows/build.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e363b3b..c7a5f2d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -61,12 +61,13 @@ jobs: version=${{ needs.resolve-version.outputs.version }} - name: Run Trivy vulnerability scan - uses: aquasecurity/trivy-action@0.30.0 - with: - image-ref: "protonmail-bridge:test" - format: 'table' - exit-code: 0 - severity: 'CRITICAL,HIGH' + continue-on-error: true + run: | + docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \ + aquasec/trivy:latest image \ + --severity CRITICAL,HIGH \ + --exit-code 0 \ + protonmail-bridge:test build: runs-on: ubuntu-latest