Add advanced CodeQL setup to replace broken default setup #408
Workflow file for this run
This file contains hidden or 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: | |
| 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 }} |