Audit #471
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Audit | |
on: | |
schedule: | |
- cron: "0 10 * * *" | |
push: | |
paths: | |
- "**/Cargo.toml" | |
- "**/Cargo.lock" | |
jobs: | |
security_audit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Update local toolchain | |
run: | | |
rustup update | |
cargo install --force cargo-audit | |
- name: Toolchain info | |
run: | | |
rustc --version | |
cargo --version --verbose | |
cargo audit --version | |
- name: Install cargo-audit | |
run: | | |
- name: Audit check | |
run: | | |
cargo audit |