Skip to content

cargo audit

cargo audit #98

Workflow file for this run

name: cargo audit
on:
schedule:
- cron: "0 0 * * 5"
# TODO: bring back once https://github.com/brettcannon/python-launcher/issues/211 is fixed.
# pull_request:
# paths:
# - "**/Cargo.toml"
# - "**/Cargo.lock"
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
# actions-rs/audit-check isn't updated fast enough for our use
# of stable.
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: "Install cargo-audit"
run: cargo install cargo-audit
- name: "Audit"
run: cargo audit