1+ # SPDX-License-Identifier: MIT OR AGPL-3.0-or-later
12name : Rust CI
23on : [push, pull_request]
34env :
89 test :
910 runs-on : ubuntu-latest
1011 steps :
11- - uses : actions/checkout@v4
12- - uses : dtolnay/rust-toolchain@stable
12+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
13+ - uses : dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # stable
1314 with :
1415 components : rustfmt, clippy
15- - uses : Swatinem/rust-cache@v2
16-
16+ - uses : Swatinem/rust-cache@23bce251a8cd2ffc3c1075ebd2b0e7570e8ddc6a # v2.7.3
17+
1718 - name : Check formatting
1819 run : cargo fmt --all -- --check
19-
20+
2021 - name : Clippy lints
2122 run : cargo clippy --all-targets --all-features -- -D warnings
22-
23+
2324 - name : Run tests
2425 run : cargo test --all-features
25-
26+
2627 - name : Build release
2728 run : cargo build --release
2829
2930 security :
3031 runs-on : ubuntu-latest
3132 steps :
32- - uses : actions/checkout@v4
33- - uses : dtolnay/rust-toolchain@stable
33+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
34+ - uses : dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # stable
3435 - name : Install cargo-audit
3536 run : cargo install cargo-audit
3637 - name : Security audit
@@ -41,12 +42,12 @@ jobs:
4142 coverage :
4243 runs-on : ubuntu-latest
4344 steps :
44- - uses : actions/checkout@v4
45- - uses : dtolnay/rust-toolchain@stable
45+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
46+ - uses : dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # stable
4647 - name : Install tarpaulin
4748 run : cargo install cargo-tarpaulin
4849 - name : Generate coverage
4950 run : cargo tarpaulin --out Xml
50- - uses : codecov/codecov-action@v3
51+ - uses : codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
5152 with :
5253 files : cobertura.xml
0 commit comments