Skip to content

Commit 0830d06

Browse files
committed
ci: only install cargo audit if needed
1 parent d9c00dc commit 0830d06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/audit-and-format.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
4040
- name: Run audit
4141
run: |
42-
cargo install cargo-audit
42+
if ! cargo install --list | grep -q cargo-audit; then
43+
cargo install cargo-audit
44+
fi
4345
cargo audit --ignore RUSTSEC-2024-0344 --ignore RUSTSEC-2022-0028
4446
4547
- name: Run rustfmt

0 commit comments

Comments
 (0)