Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
ci(release): verify every platform from one pinned checksums file
Martin Vogel70b2994425e1
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 02c9f3f37..40647dd09 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -462,18 +462,32 @@ jobs:# Pinned by version AND content hash: `latest` would let an upstream# release (or a compromised one) change what runs in the job that holds# the registry publish credential, and piping curl straight into tar- # executes the payload before anything can verify it. The job is- # ubuntu-latest, so the linux/amd64 asset is the only one needed.- # Checksum from registry_1.8.1_checksums.txt of the same release.+ # executes the payload before anything can verify it.+ #+ # One pin covers every platform. Upstream ships a checksums file for the+ # whole release, so we pin that file's own SHA-256 and verify whichever+ # asset this runner needs against it. Moving the job to a different OS or+ # architecture therefore needs no change here, and an unlisted asset+ # fails closed rather than installing unverified.- name: Install mcp-publisherenv:MCP_PUBLISHER_VERSION: v1.8.1- MCP_PUBLISHER_SHA256: a06c9096dcb9727c13555b6be26c7effa707b01f06a4c561ba7a3635443cf2cc+ MCP_PUBLISHER_CHECKSUMS_SHA256: f7937a7908096f63147658e13f0f63a393a1c9fc722a2d10017593940d36e59erun: |- asset="mcp-publisher_linux_amd64.tar.gz"- curl -fsSLo "$asset" \- "https://github.com/modelcontextprotocol/registry/releases/download/$MCP_PUBLISHER_VERSION/$asset"- echo "$MCP_PUBLISHER_SHA256 $asset" | sha256sum -c -+ base="https://github.com/modelcontextprotocol/registry/releases/download/$MCP_PUBLISHER_VERSION"+ sums="registry_${MCP_PUBLISHER_VERSION#v}_checksums.txt"+ asset="mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz"++ curl -fsSLo "$sums" "$base/$sums"+ echo "$MCP_PUBLISHER_CHECKSUMS_SHA256 $sums" | sha256sum -c -++ curl -fsSLo "$asset" "$base/$asset"+ # Exact filename match: a substring match would also accept the+ # .sbom.json / .sigstore.json lines for the same asset.+ awk -v a="$asset" '$2 == a' "$sums" > expected.sha256+ test -s expected.sha256 || { echo "no checksum listed for $asset" >&2; exit 1; }+ sha256sum -c expected.sha256+tar xzf "$asset" mcp-publisher- name: Authenticate to MCP Registry (GitHub OIDC)