Skip to content

Security Audit

Security Audit #76

Workflow file for this run

name: Security Audit
# Runs cargo-audit against the advisory allow-list in audit.toml on every
# push/PR to main and on a daily schedule, so a newly disclosed advisory in
# a dependency is caught even without a dependency-bumping PR (issue #270).
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '17 4 * * *'
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-audit-${{ hashFiles('**/Cargo.lock') }}
- name: Install cargo-audit
run: cargo install --locked cargo-audit
- name: Run cargo audit
run: cargo audit