ci: update audit workflow (#685)

Manually install the audit crate as part of the audit CI since it seems to be using too old of a version of Rust.
This commit is contained in:
Clement Tsang 2022-02-27 19:52:09 -05:00 committed by GitHub
parent adf1e2b216
commit 57e1a8285e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,9 +10,21 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions-rs/install@master
- uses: Swatinem/rust-cache@842ef286fff290e445b90b4002cc9807c3669641 # 1.3.0
- name: Install toolchain
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
with: with:
crate: cargo-audit profile: minimal
toolchain: stable
override: true
target: ${{ matrix.triple.target }}
- name: Install cargo-audit
run: |
cargo install cargo-audit --locked
- uses: actions-rs/audit-check@35b7b53b1e25b55642157ac01b4adceb5b9ebef3 # 1.2.0 - uses: actions-rs/audit-check@35b7b53b1e25b55642157ac01b4adceb5b9ebef3 # 1.2.0
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}