Skip to content

Commit 5ea8a8f

Browse files
committed
ci(audit): replace rustsec/audit-check with cached cargo-audit install and 'cargo audit --deny warnings' on pinned 1.90.0
1 parent 046fd81 commit 5ea8a8f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/security-audit.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ jobs:
1717
with:
1818
submodules: false
1919
- uses: dtolnay/rust-toolchain@1.90.0
20-
- uses: rustsec/audit-check@v2
20+
- uses: actions/cache@v4
2121
with:
22-
token: ${{ secrets.GITHUB_TOKEN }}
22+
path: |
23+
~/.cargo/registry
24+
~/.cargo/git
25+
~/.cargo/bin/cargo-audit
26+
key: audit-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
27+
- name: Install cargo-audit
28+
run: |
29+
if ! command -v cargo-audit >/dev/null; then
30+
cargo install cargo-audit --locked
31+
fi
32+
- name: Run cargo audit
33+
run: cargo audit --deny warnings

0 commit comments

Comments
 (0)