From ac9785fabb4fa5d0282bc130a7e9803626806502 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Thu, 22 Jan 2026 00:26:20 +0000 Subject: [PATCH] protoc: safer pinning --- build/get_protoc.bash | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/build/get_protoc.bash b/build/get_protoc.bash index 6e97849..dad3e89 100644 --- a/build/get_protoc.bash +++ b/build/get_protoc.bash @@ -19,9 +19,14 @@ wget --continue https://github.com/protocolbuffers/protobuf/releases/download/v" stat "$FILENAME" -sha256sum -c --ignore-missing <&2; exit 1 ;; +esac + +# Verify checksum explicitly - fails if hash doesn't match +echo "$EXPECTED_SHA256 $FILENAME" | sha256sum -c - unzip -d . "$FILENAME"