From 666ab88106c5d7b9b9f329d22e4ca1693f17085a Mon Sep 17 00:00:00 2001 From: Matthew Meszaros Date: Thu, 22 Oct 2026 17:54:30 +0200 Subject: [PATCH] feat: install protoc 33.6 in Go CI from its pinned release archive verified against the published SHA-256 digest instead of resolving a version through arduino/setup-protoc --- .github/workflows/ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78452df37..301b8d209 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -181,11 +181,20 @@ jobs: go-version-file: go.mod cache: true + # A pinned release verified by digest; resolving "latest" lists every protobuf release and fails when that listing is cut short. - name: Set up protoc - uses: arduino/setup-protoc@v3 - with: - version: "33.x" - repo-token: ${{ github.token }} + env: + PROTOC_VERSION: "33.6" + PROTOC_SHA256: 9c49962391ff8b5754342509efc3885db91dfe11a358e1e98c9a71518f0ad199 + run: | + set -eu + archive="$RUNNER_TEMP/protoc.zip" + curl -fsSL --retry 5 --retry-all-errors -o "$archive" \ + "https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip" + echo "${PROTOC_SHA256} ${archive}" | sha256sum -c - + unzip -q -o "$archive" -d "$RUNNER_TEMP/protoc" + echo "$RUNNER_TEMP/protoc/bin" >> "$GITHUB_PATH" + "$RUNNER_TEMP/protoc/bin/protoc" --version - name: Install required Go tools run: make setup-tools