chore(ci): harden the release supply chain #460
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 | |
| permissions: | |
| # rustsec/audit-check reports advisories as a check run on push/PR and | |
| # opens issues on the scheduled run. | |
| checks: write | |
| contents: read | |
| issues: write | |
| # 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@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 | |
| - uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2.0.0 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} |