Skip to content

Commit ebf77c2

Browse files
committed
Use actions-rs/install and /audit-check for cargo-audit
1 parent beb755c commit ebf77c2

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,14 @@ jobs:
2020
name: Audit Rust vulnerabilities
2121
runs-on: ubuntu-latest
2222
steps:
23-
- name: Install Rust toolchain
24-
uses: actions-rs/toolchain@v1
25-
with:
26-
toolchain: stable
27-
profile: minimal
28-
override: true
29-
3023
- name: Checkout repository
3124
uses: actions/checkout@v2
3225

33-
- run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
34-
35-
- name: Cache cargo
36-
uses: actions/cache@v1
26+
- uses: actions-rs/[email protected]
3727
with:
38-
path: ~/.cargo/
39-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
28+
crate: cargo-audit
29+
use-tool-cache: true
4030

41-
- run: cargo install cargo-audit
4231
- run: cargo audit
4332

4433
rust:

0 commit comments

Comments
 (0)