From 5c135f55fe990fd564258544c11a7fac320f4f3d Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Thu, 26 Mar 2026 16:44:20 +0100 Subject: [PATCH] fix(ci): skip cargo-audit install if already present The per-runner isolated CARGO_HOME now has cargo-audit pre-installed. The install step would fail with "binary already exists" without --force. Use which check to skip installation when binary is available. Refs #91 Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 4daffff5d..7a181c4f0 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -463,7 +463,7 @@ jobs: uses: dtolnay/rust-toolchain@stable - name: Install cargo-audit - run: cargo install cargo-audit --no-default-features + run: which cargo-audit || cargo install cargo-audit --no-default-features - name: Run security audit run: |