mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
Use actions-rs/install and /audit-check for cargo-audit
This commit is contained in:
parent
beb755caa2
commit
ebf77c2bf7
1 changed files with 3 additions and 14 deletions
17
.github/workflows/ci.yaml
vendored
17
.github/workflows/ci.yaml
vendored
|
@ -20,25 +20,14 @@ jobs:
|
||||||
name: Audit Rust vulnerabilities
|
name: Audit Rust vulnerabilities
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install Rust toolchain
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
- uses: actions-rs/install@v0.1
|
||||||
|
|
||||||
- name: Cache cargo
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/
|
crate: cargo-audit
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
use-tool-cache: true
|
||||||
|
|
||||||
- run: cargo install cargo-audit
|
|
||||||
- run: cargo audit
|
- run: cargo audit
|
||||||
|
|
||||||
rust:
|
rust:
|
||||||
|
|
Loading…
Reference in a new issue