From 88bdaf7d3a8d9baed7eab3d5f006071effec1691 Mon Sep 17 00:00:00 2001 From: embeddevio Date: Wed, 28 Oct 2026 22:21:04 +0300 Subject: [PATCH] =?UTF-8?q?ci:=20trivy=20=D1=81=D1=82=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BC=20=D0=B8=D0=B7=20=D1=80=D0=B5=D0=BB=D0=B8=D0=B7=D0=BD?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE=20tarball=20(install.sh=20+=20v0.57.1=20?= =?UTF-8?q?=E2=86=92=20404),=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D1=8F=200.76?= =?UTF-8?q?.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #17 --- .gitea/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 33d69aa..2e48d22 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -245,13 +245,16 @@ jobs: if: needs.lint.outputs.has_dockerfile == 'true' runs-on: ubuntu-latest env: - TRIVY_VERSION: "0.57.1" + TRIVY_VERSION: "0.76.1" TRIVY_SEVERITY: "HIGH,CRITICAL" steps: - name: install trivy run: | - curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh \ - | sh -s -- -b /usr/local/bin "v${TRIVY_VERSION}" + set -euo pipefail + curl -fsSL -o /tmp/trivy.tar.gz \ + "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" + tar -xzf /tmp/trivy.tar.gz -C /usr/local/bin trivy + chmod +x /usr/local/bin/trivy trivy --version - name: "trivy image (HIGH/CRITICAL -> fail)"