Skip to content

Commit 07d5ef9

Browse files
committed
test: pin jq proof checksums
1 parent c87f6b3 commit 07d5ef9

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

‎docs/proof/split-dashboard-worker-tests/container-proof.sh‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,23 @@ trap 'rm -rf "$proof_tmp"' EXIT
66

77
jq_version="1.8.2"
88
case "$(uname -m)" in
9-
x86_64) jq_asset="jq-linux-amd64" ;;
10-
aarch64 | arm64) jq_asset="jq-linux-arm64" ;;
9+
x86_64)
10+
jq_asset="jq-linux-amd64"
11+
jq_sha256="b1c22172dd303f3be49e935aa56aa48a8b7a46e0bc838b4997d3bb451495870f"
12+
;;
13+
aarch64 | arm64)
14+
jq_asset="jq-linux-arm64"
15+
jq_sha256="8b85c817833814ddca00a144c33705546355afccf0cf39b188f3cdb48b852309"
16+
;;
1117
*)
1218
echo "unsupported container architecture: $(uname -m)" >&2
1319
exit 1
1420
;;
1521
esac
1622

17-
curl -fsSL "https://github.com/jqlang/jq/releases/download/jq-${jq_version}/sha256sum.txt" \
18-
-o "$proof_tmp/sha256sum.txt"
1923
curl -fsSL "https://github.com/jqlang/jq/releases/download/jq-${jq_version}/${jq_asset}" \
2024
-o "$proof_tmp/$jq_asset"
25+
printf '%s %s\n' "$jq_sha256" "$jq_asset" > "$proof_tmp/sha256sum.txt"
2126
(
2227
cd "$proof_tmp"
2328
sha256sum --ignore-missing --strict -c sha256sum.txt

0 commit comments

Comments
 (0)