aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2020-04-11 11:50:32 +0100
committerLaurenČ›iu Nicola <[email protected]>2020-04-11 12:32:53 +0100
commitebf77c2bf7f755f5e8353b46154839f234950ce0 (patch)
tree5032557d679ce7958e06d2a5a7837d1ec5edef72
parentbeb755caa2b1d7265da7d3367af3b49039dfe00e (diff)
Use actions-rs/install and /audit-check for cargo-audit
-rw-r--r--.github/workflows/ci.yaml17
1 files changed, 3 insertions, 14 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 02a3b6228..00f299ff1 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -20,25 +20,14 @@ jobs:
20 name: Audit Rust vulnerabilities 20 name: Audit Rust vulnerabilities
21 runs-on: ubuntu-latest 21 runs-on: ubuntu-latest
22 steps: 22 steps:
23 - name: Install Rust toolchain
24 uses: actions-rs/toolchain@v1
25 with:
26 toolchain: stable
27 profile: minimal
28 override: true
29
30 - name: Checkout repository 23 - name: Checkout repository
31 uses: actions/checkout@v2 24 uses: actions/checkout@v2
32 25
33 - run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/ 26 - uses: actions-rs/[email protected]
34
35 - name: Cache cargo
36 uses: actions/cache@v1
37 with: 27 with:
38 path: ~/.cargo/ 28 crate: cargo-audit
39 key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} 29 use-tool-cache: true
40 30
41 - run: cargo install cargo-audit
42 - run: cargo audit 31 - run: cargo audit
43 32
44 rust: 33 rust: