cargo audit #124
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: 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 |