From 8adb1e0c87df97d690d2ebee1ce32199f7c9b5aa Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Mon, 23 Nov 2026 17:37:51 +0000 Subject: [PATCH] build: pin the scanner image tool versions The scanner image installed trivy and grype from install scripts on the main branch, govulncheck at latest and pip-audit unpinned, so every build could pull different tools. They are now pinned: trivy v0.76.2, grype v0.121.2, govulncheck v1.9.0 and pip-audit 2.10.1, each released at least two weeks ago. --- Dockerfile.scanner | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile.scanner b/Dockerfile.scanner index 1eb500c..8b11c76 100644 --- a/Dockerfile.scanner +++ b/Dockerfile.scanner @@ -23,17 +23,17 @@ RUN apk add --no-cache \ && update-ca-certificates # Install Trivy for container scanning -RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin +RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/v0.76.2/contrib/install.sh | sh -s -- -b /usr/local/bin v0.76.2 # Install Grype for vulnerability scanning -RUN curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin +RUN curl -sSfL https://raw.githubusercontent.com/anchore/grype/v0.121.2/install.sh | sh -s -- -b /usr/local/bin v0.121.2 # Install govulncheck for Go vulnerability scanning -RUN go install golang.org/x/vuln/cmd/govulncheck@latest && \ +RUN go install golang.org/x/vuln/cmd/govulncheck@v1.9.0 && \ mv /root/go/bin/govulncheck /usr/local/bin/ # Install pip-audit for Python package vulnerability scanning -RUN pip3 install --no-cache-dir pip-audit --break-system-packages +RUN pip3 install --no-cache-dir pip-audit==2.10.1 --break-system-packages # Create non-root user RUN addgroup -g 1000 scanner && \