Security Audit #2242
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: Security Audit | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "**/Cargo.toml" | |
- "**/Cargo.lock" | |
pull_request: | |
branches: [main] | |
paths: | |
- "**/Cargo.toml" | |
- "**/Cargo.lock" | |
schedule: | |
- cron: "32 10 * * *" | |
jobs: | |
audit: | |
name: Audit Rust Dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache ~/.cargo | |
uses: actions/cache@v4 | |
with: | |
# we specifically want ~/.cargo/bin/cargo-audit | |
# and ~/.cargo/.crates.toml and .crates2.json | |
# which cargo-install uses to remember that it's | |
# already installed | |
path: ~/.cargo | |
key: ${{ runner.os }}-audit-dotcargo | |
- uses: actions-rust-lang/audit@v1 | |
name: Audit Rust Dependencies |