Skip to content

Commit 1708761

Browse files
authored
chore(ci): replace archived actions-rs/cargo with bare cargo invocations (#14017)
The actions-rs/ GitHub organization is archived and no longer maintained. Its SHA-pinned references are still resolvable today, but the org could be deleted or reclaimed at any point — at which moment the pinned SHAs would become unreachable and every workflow that references them would fail to start. Replace the two actions-rs/cargo steps in reusable-rust-test.yml with direct `cargo clippy` and `cargo fmt` invocations. The `rust_check` job already installs the Rust toolchain via the local ./.github/actions/rustup composite (with `save-if: true, key: check`), which provides clippy and rustfmt components — no additional toolchain setup is required. Behavior is unchanged: same cargo subcommand, same args. - Run Clippy: cargo clippy --workspace --all-targets --tests -- -D warnings - Run rustfmt: cargo fmt --all -- --check
1 parent f83f2f5 commit 1708761

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/reusable-rust-test.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,10 @@ jobs:
6464
run: cargo workspaces exec cargo check --all-targets --locked
6565

6666
- name: Run Clippy
67-
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1
68-
with:
69-
command: clippy
70-
args: --workspace --all-targets --tests -- -D warnings
67+
run: cargo clippy --workspace --all-targets --tests -- -D warnings
7168

7269
- name: Run rustfmt
73-
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1
74-
with:
75-
command: fmt
76-
args: --all -- --check
70+
run: cargo fmt --all -- --check
7771

7872
- name: Install taplo
7973
run: cargo install taplo-cli --locked

0 commit comments

Comments
 (0)