From ebf77c2bf7f755f5e8353b46154839f234950ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Sat, 11 Apr 2020 13:50:32 +0300 Subject: Use actions-rs/install and /audit-check for cargo-audit --- .github/workflows/ci.yaml | 17 +++-------------- 1 file 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: name: Audit Rust vulnerabilities runs-on: ubuntu-latest steps: - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - - name: Checkout repository uses: actions/checkout@v2 - - run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/ - - - name: Cache cargo - uses: actions/cache@v1 + - uses: actions-rs/install@v0.1 with: - path: ~/.cargo/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + crate: cargo-audit + use-tool-cache: true - - run: cargo install cargo-audit - run: cargo audit rust: -- cgit v1.2.3