|
19 | 19 |
|
20 | 20 | - name: Install Rust |
21 | 21 | uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # stable |
22 | | - # toolchain version + components are read from rust-toolchain.toml. |
| 22 | + with: |
| 23 | + # Must match rust-toolchain.toml's channel. The SHA-pinned |
| 24 | + # action can't read action_ref for the toolchain (it's a |
| 25 | + # SHA, not a channel name) so we have to be explicit. |
| 26 | + toolchain: "1.93.1" |
23 | 27 |
|
24 | 28 | - name: Cache cargo |
25 | 29 | uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 |
|
48 | 52 |
|
49 | 53 | - name: Install Rust |
50 | 54 | uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # stable |
51 | | - # toolchain version is read from rust-toolchain.toml (exact-pinned). |
| 55 | + with: |
| 56 | + # Must match rust-toolchain.toml's channel. The SHA-pinned |
| 57 | + # action can't read action_ref for the toolchain (it's a |
| 58 | + # SHA, not a channel name) so we have to be explicit. |
| 59 | + toolchain: "1.93.1" |
52 | 60 |
|
53 | 61 | - name: Cache cargo |
54 | 62 | uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 |
|
76 | 84 |
|
77 | 85 | - name: Install Rust |
78 | 86 | uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # stable |
79 | | - # toolchain version is read from rust-toolchain.toml (exact-pinned). |
| 87 | + with: |
| 88 | + # Must match rust-toolchain.toml's channel. The SHA-pinned |
| 89 | + # action can't read action_ref for the toolchain (it's a |
| 90 | + # SHA, not a channel name) so we have to be explicit. |
| 91 | + toolchain: "1.93.1" |
80 | 92 |
|
81 | 93 | - name: Cache cargo |
82 | 94 | uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 |
@@ -109,9 +121,10 @@ jobs: |
109 | 121 | - name: Install Rust |
110 | 122 | uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # stable |
111 | 123 | with: |
| 124 | + # Must match rust-toolchain.toml's channel. |
| 125 | + toolchain: "1.93.1" |
112 | 126 | # `llvm-tools-preview` is what cargo-llvm-cov uses to merge |
113 | | - # `.profraw` files and emit lcov. The toolchain channel itself |
114 | | - # is read from `rust-toolchain.toml`. |
| 127 | + # `.profraw` files and emit lcov. |
115 | 128 | components: llvm-tools-preview |
116 | 129 |
|
117 | 130 | - name: Install cargo-llvm-cov |
@@ -203,6 +216,8 @@ jobs: |
203 | 216 | - name: Install Rust |
204 | 217 | uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # stable |
205 | 218 | with: |
| 219 | + # Must match rust-toolchain.toml's channel. |
| 220 | + toolchain: "1.93.1" |
206 | 221 | components: llvm-tools-preview |
207 | 222 |
|
208 | 223 | - name: Install cargo-llvm-cov |
@@ -396,7 +411,11 @@ jobs: |
396 | 411 |
|
397 | 412 | - name: Install Rust |
398 | 413 | uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # stable |
399 | | - # toolchain version is read from rust-toolchain.toml (exact-pinned). |
| 414 | + with: |
| 415 | + # Must match rust-toolchain.toml's channel. The SHA-pinned |
| 416 | + # action can't read action_ref for the toolchain (it's a |
| 417 | + # SHA, not a channel name) so we have to be explicit. |
| 418 | + toolchain: "1.93.1" |
400 | 419 |
|
401 | 420 | - name: Cache cargo |
402 | 421 | uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 |
@@ -462,7 +481,9 @@ jobs: |
462 | 481 |
|
463 | 482 | - name: Install Rust |
464 | 483 | uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9 # stable |
465 | | - # toolchain version is read from rust-toolchain.toml. |
| 484 | + with: |
| 485 | + # Must match rust-toolchain.toml's channel. |
| 486 | + toolchain: "1.93.1" |
466 | 487 |
|
467 | 488 | # No `actions/cache` here intentionally. This job builds Docker |
468 | 489 | # images and would be flagged by zizmor's cache-poisoning audit. |
|
0 commit comments