Merge pull request #3940 from lnicola/cargo-audit

Use actions-rs/install and /audit-check for cargo-audit
This commit is contained in:
Aleksey Kladov 2020-04-11 14:46:20 +02:00 committed by GitHub
commit 82c98f425c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: