name: Dependency audit
on:
pull_request:
paths:
- Cargo.toml
- Cargo.lock
- .github/workflows/security.yml
push:
branches: [main]
paths:
- Cargo.toml
- Cargo.lock
- .github/workflows/security.yml
schedule:
- cron: '27 6 * * 1'
workflow_dispatch:
permissions:
contents: read
jobs:
audit:
runs-on: ubuntu-26.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- run: rustup toolchain install stable --profile minimal
- run: cargo +stable install cargo-audit --locked
- run: cargo +stable audit