Skip to content

Commit 265efc6

Browse files
decofegrandizzy
andauthored
chore: supply chain hardening (#428)
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
1 parent 2578e0a commit 265efc6

3 files changed

Lines changed: 34 additions & 28 deletions

File tree

.github/workflows/workflow-validation.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ jobs:
3131
run: |
3232
set -euo pipefail
3333
version=1.7.8
34-
curl -sSL "https://github.com/rhysd/actionlint/releases/download/v${version}/actionlint_${version}_linux_amd64.tar.gz" -o /tmp/actionlint.tgz
34+
expected_sha256="be92c2652ab7b6d08425428797ceabeb16e31a781c07bc388456b4e592f3e36a"
35+
curl -fsSL "https://github.com/rhysd/actionlint/releases/download/v${version}/actionlint_${version}_linux_amd64.tar.gz" -o /tmp/actionlint.tgz
36+
actual_sha256=$(sha256sum /tmp/actionlint.tgz | cut -d' ' -f1)
37+
if [ "$actual_sha256" != "$expected_sha256" ]; then
38+
echo "::error::actionlint checksum mismatch: expected $expected_sha256, got $actual_sha256"
39+
exit 1
40+
fi
3541
tar -xzf /tmp/actionlint.tgz -C /tmp
3642
sudo mv /tmp/actionlint /usr/local/bin/actionlint
3743
- name: Run actionlint

Cargo.lock

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ serde = { version = "1.0", features = ["derive"] }
4747
serde_json = "1.0"
4848
sha2 = "0.11"
4949
tempfile = "3.27"
50-
tempo-primitives = { git = "https://github.com/tempoxyz/tempo.git", features = ["serde"] }
50+
tempo-primitives = { git = "https://github.com/tempoxyz/tempo.git", rev = "7d809cf350e35c92b420a18672222b710f86f77a", features = ["serde"] }
5151
thiserror = "2.0"
5252
time = "0.3"
5353
tokio = { version = "1.51", features = ["macros", "rt-multi-thread", "signal"] }
@@ -68,5 +68,5 @@ predicates = "3.1"
6868
serial_test = "3.2"
6969

7070
[patch.crates-io]
71-
tempo-alloy = { git = "https://github.com/tempoxyz/tempo.git" }
72-
tempo-primitives = { git = "https://github.com/tempoxyz/tempo.git" }
71+
tempo-alloy = { git = "https://github.com/tempoxyz/tempo.git", rev = "7d809cf350e35c92b420a18672222b710f86f77a" }
72+
tempo-primitives = { git = "https://github.com/tempoxyz/tempo.git", rev = "7d809cf350e35c92b420a18672222b710f86f77a" }

0 commit comments

Comments
 (0)