diff options
author | Aleksey Kladov <[email protected]> | 2020-04-11 13:46:20 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-11 13:46:20 +0100 |
commit | 82c98f425cafb8185c2ed8a4fa723dacbaee84b4 (patch) | |
tree | 7cb9fc57c1d8ba7f8cdbeaf88542604e64a5daef | |
parent | 0ecdba20df41a800222d0fd864843843feb6e875 (diff) | |
parent | ebf77c2bf7f755f5e8353b46154839f234950ce0 (diff) |
Merge pull request #3940 from lnicola/cargo-audit
Use actions-rs/install and /audit-check for cargo-audit
-rw-r--r-- | .github/workflows/ci.yaml | 17 |
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: |