From 6fbd7fdb92b834a6c9541b13c67fa055afc56ff6 Mon Sep 17 00:00:00 2001 From: trivernis Date: Wed, 11 Nov 2020 17:47:44 +0100 Subject: [PATCH] Add cargo audit check Signed-off-by: trivernis --- .github/workflows/rust.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fd7d403..664aec9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,9 +19,7 @@ jobs: uses: actions/cache@v2 with: path: | - target/**/build - target/**/deps - target/**/incremental + target ~/.cargo/ key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} restore-keys: | @@ -30,6 +28,10 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose + - name: Run audit + uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} build-release: