Skip to content

Add advanced CodeQL setup to replace broken default setup #408

Add advanced CodeQL setup to replace broken default setup

Add advanced CodeQL setup to replace broken default setup #408

Workflow file for this run

name: Security audit
on:
schedule:
- cron: 0 0 * * 1
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
pull_request:
jobs:
audit:
runs-on: ubuntu-latest
# cargo-audit's dependency tree can require a newer rustc than this repo's
# pinned rust-toolchain.toml (used to build the actual crate). Override
# with the runner's default stable toolchain just for this job so
# `cargo install cargo-audit` isn't stuck on our pin.
env:
RUSTUP_TOOLCHAIN: stable
steps:
- uses: actions/checkout@v4
- uses: rustsec/audit-check@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}