From a7ab504d45c1938675301e117ebd1c368fc70b82 Mon Sep 17 00:00:00 2001 From: Julio Araujo Date: Tue, 7 Apr 2026 17:33:53 +0200 Subject: [PATCH] chore: add support for different architectures for trufflehog in docker --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9784210..6e9592f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,8 @@ RUN apk add --no-cache \ py3-pip \ wget \ && python3 -m pip install --break-system-packages semgrep==1.154.0 \ - && wget -qO- "https://github.com/trufflesecurity/trufflehog/releases/download/v3.93.7/trufflehog_3.93.7_linux_amd64.tar.gz" \ + && ARCH="$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')" \ + && wget -qO- "https://github.com/trufflesecurity/trufflehog/releases/download/v3.93.7/trufflehog_3.93.7_linux_${ARCH}.tar.gz" \ | tar -xz -C /usr/local/bin trufflehog \ && chmod +x /usr/local/bin/trufflehog