From 9c460b101ef5b4d69c2845c24704a63b8327db66 Mon Sep 17 00:00:00 2001 From: paspo Date: Fri, 17 Jan 2025 08:03:14 +0100 Subject: [PATCH] multiarch trivy --- .gitea/workflows/vulnscan.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/vulnscan.yaml b/.gitea/workflows/vulnscan.yaml index d389189..a75af65 100644 --- a/.gitea/workflows/vulnscan.yaml +++ b/.gitea/workflows/vulnscan.yaml @@ -19,7 +19,14 @@ jobs: - name: Setup trivy run: | - wget -O /tmp/trivy.deb https://github.com/aquasecurity/trivy/releases/download/v0.57.1/trivy_0.57.1_Linux-64bit.deb + echo "Installing Trivy for arch: $(uname -m)" + case $(uname -m) in + x86_64) + wget -O /tmp/trivy.deb https://github.com/aquasecurity/trivy/releases/download/v0.58.2/trivy_0.58.2_Linux-64bit.deb ;; + aarch64) + wget -O /tmp/trivy.deb https://github.com/aquasecurity/trivy/releases/download/v0.58.2/trivy_0.58.2_Linux-ARM64.deb ;; + *) exit 1 ;; + esac dpkg -i /tmp/trivy.deb - name: Run Trivy vulnerability scanner