Skip to content

Commit 38e1223

Browse files
committed
ci(rust): check cargo-msrv's hash
1 parent 52cb6a8 commit 38e1223

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/rust.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,17 @@ jobs:
147147
if: matrix.os == 'ubuntu-latest'
148148
working-directory: rust
149149
run: |
150-
curl -L "https://github.com/foresterre/cargo-msrv/releases/download/v0.18.4/cargo-msrv-x86_64-unknown-linux-gnu-v0.18.4.tgz" |
151-
tar xz --wildcards --strip-components=1 -C "$HOME/.local/bin" "*/cargo-msrv"
150+
# Install cargo-msrv
151+
cargo_msrv_version="v0.18.4"
152+
cargo_msrv_hash="367a48e4ad014b119bf728a9e95e863575e02fdf6cf95ae24f44ca73b445ee14"
153+
cargo_msrv_archive="cargo-msrv.tgz"
154+
155+
curl -L "https://github.com/foresterre/cargo-msrv/releases/download/${cargo_msrv_version}/cargo-msrv-x86_64-unknown-linux-gnu-${cargo_msrv_version}.tgz" -o "${cargo_msrv_archive}"
156+
echo "${cargo_msrv_hash} ${cargo_msrv_archive}" | sha256sum -c -
157+
tar xz -f "${cargo_msrv_archive}" --wildcards --strip-components=1 -C "$HOME/.local/bin" "*/cargo-msrv"
158+
rm "${cargo_msrv_archive}"
159+
160+
# Verify MSRV for each package
152161
find . -mindepth 2 -name Cargo.toml | while read -r dir
153162
do
154163
echo "Checking package '$dir'"

0 commit comments

Comments
 (0)