@@ -43,13 +43,19 @@ jobs:
4343 CARGO_PROFILE_DEV_DEBUG : line-tables-only
4444 steps :
4545 - name : Checkout repository
46- uses : actions/checkout@v6
46+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
47+ with :
48+ persist-credentials : false
4749 - name : Install Rust
48- uses : dtolnay/rust-toolchain@stable
50+ uses : dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
4951 with :
5052 toolchain : ${{ matrix.rust }}
51- - uses : Swatinem/rust-cache@v2
52- - uses : taiki-e/install-action@cargo-hack
53+ - name : Initialize cache
54+ uses : Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
55+ - name : Install cargo-hack
56+ uses : taiki-e/install-action@97a5807a604e12de3a13b52d868ebecaeeea757c # v2.75.4
57+ with :
58+ tool : cargo-hack
5359 - name : Build
5460 run : cargo test --workspace --no-run
5561 - name : Test
@@ -62,13 +68,19 @@ jobs:
6268 runs-on : ${{ matrix.os }}
6369 steps :
6470 - name : Checkout repository
65- uses : actions/checkout@v6
71+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
72+ with :
73+ persist-credentials : false
6674 - name : Install Rust
67- uses : dtolnay/rust-toolchain@stable
75+ uses : dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
6876 with :
6977 toolchain : stable
70- - uses : Swatinem/rust-cache@v2
71- - uses : taiki-e/install-action@cargo-hack
78+ - name : Initialize cache
79+ uses : Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
80+ - name : Install cargo-hack
81+ uses : taiki-e/install-action@97a5807a604e12de3a13b52d868ebecaeeea757c # v2.75.4
82+ with :
83+ tool : cargo-hack
7284 - name : Default features
7385 run : cargo hack check --each-feature --locked --rust-version --ignore-private --workspace --all-targets --keep-going
7486 minimal-versions :
@@ -79,13 +91,15 @@ jobs:
7991 runs-on : ${{ matrix.os }}
8092 steps :
8193 - name : Checkout repository
82- uses : actions/checkout@v6
94+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
95+ with :
96+ persist-credentials : false
8397 - name : Install stable Rust
84- uses : dtolnay/rust-toolchain@stable
98+ uses : dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
8599 with :
86100 toolchain : stable
87101 - name : Install nightly Rust
88- uses : dtolnay/rust-toolchain@stable
102+ uses : dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
89103 with :
90104 toolchain : nightly
91105 - name : Downgrade dependencies to minimal versions
@@ -96,25 +110,31 @@ jobs:
96110 runs-on : ubuntu-latest
97111 steps :
98112 - name : Checkout repository
99- uses : actions/checkout@v6
113+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
114+ with :
115+ persist-credentials : false
100116 - name : Install Rust
101- uses : dtolnay/rust-toolchain@stable
117+ uses : dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
102118 with :
103119 toolchain : stable
104- - uses : Swatinem/rust-cache@v2
120+ - name : Initialize cache
121+ uses : Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
105122 - name : " Is lockfile updated?"
106123 run : cargo update --workspace --locked
107124 docs :
108125 name : Docs
109126 runs-on : ubuntu-latest
110127 steps :
111128 - name : Checkout repository
112- uses : actions/checkout@v6
129+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
130+ with :
131+ persist-credentials : false
113132 - name : Install Rust
114- uses : dtolnay/rust-toolchain@stable
133+ uses : dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
115134 with :
116135 toolchain : " 1.95" # STABLE
117- - uses : Swatinem/rust-cache@v2
136+ - name : Initialize cache
137+ uses : Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
118138 - name : Check documentation
119139 env :
120140 RUSTDOCFLAGS : -D warnings
@@ -124,13 +144,16 @@ jobs:
124144 runs-on : ubuntu-latest
125145 steps :
126146 - name : Checkout repository
127- uses : actions/checkout@v6
147+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
148+ with :
149+ persist-credentials : false
128150 - name : Install Rust
129- uses : dtolnay/rust-toolchain@stable
151+ uses : dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
130152 with :
131153 toolchain : " 1.95" # STABLE
132154 components : rustfmt
133- - uses : Swatinem/rust-cache@v2
155+ - name : Initialize cache
156+ uses : Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
134157 - name : Check formatting
135158 run : cargo fmt --check
136159 clippy :
@@ -140,13 +163,16 @@ jobs:
140163 security-events : write # to upload sarif results
141164 steps :
142165 - name : Checkout repository
143- uses : actions/checkout@v6
166+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
167+ with :
168+ persist-credentials : false
144169 - name : Install Rust
145- uses : dtolnay/rust-toolchain@stable
170+ uses : dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
146171 with :
147172 toolchain : " 1.95" # STABLE
148173 components : clippy
149- - uses : Swatinem/rust-cache@v2
174+ - name : Initialize cache
175+ uses : Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
150176 - name : Install SARIF tools
151177 run : cargo install clippy-sarif --locked
152178 - name : Install SARIF tools
@@ -159,7 +185,7 @@ jobs:
159185 | sarif-fmt
160186 continue-on-error : true
161187 - name : Upload
162- uses : github/codeql-action/upload-sarif@v4
188+ uses : github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
163189 with :
164190 sarif_file : clippy-results.sarif
165191 wait-for-processing : true
@@ -170,17 +196,20 @@ jobs:
170196 runs-on : ubuntu-latest
171197 steps :
172198 - name : Checkout repository
173- uses : actions/checkout@v6
199+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
200+ with :
201+ persist-credentials : false
174202 - name : Install Rust
175- uses : dtolnay/rust-toolchain@stable
203+ uses : dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
176204 with :
177205 toolchain : stable
178- - uses : Swatinem/rust-cache@v2
206+ - name : Initialize cache
207+ uses : Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
179208 - name : Install cargo-tarpaulin
180209 run : cargo install cargo-tarpaulin
181210 - name : Gather coverage
182211 run : cargo tarpaulin --output-dir coverage --out lcov
183212 - name : Publish to Coveralls
184- uses : coverallsapp/github-action@master
213+ uses : coverallsapp/github-action@09b709cf6a16e30b0808ba050c7a6e8a5ef13f8d # master
185214 with :
186215 github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments