Skip to content

Security audit

Security audit #1231

Workflow file for this run

name: Security audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
pull_request:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
audit:
name: Run cargo audit
env:
CARGO_TERM_COLOR: always
runs-on: ubuntu-latest
permissions:
pull-requests: read
contents: read
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
id: rust-toolchain
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-${{ steps.rust-toolchain.outputs.cachekey }}-audit
- uses: rustsec/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}