Security Audit #35
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: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "Cargo.toml" | |
| - "Cargo.lock" | |
| - "**/Cargo.toml" | |
| pull_request: | |
| paths: | |
| - "Cargo.toml" | |
| - "Cargo.lock" | |
| - "**/Cargo.toml" | |
| schedule: | |
| # Every Monday at 08:00 UTC | |
| - cron: "0 8 * * 1" | |
| workflow_dispatch: | |
| jobs: | |
| audit: | |
| name: cargo audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install cargo-audit | |
| run: cargo install cargo-audit --locked | |
| - name: Run cargo audit | |
| run: cargo audit --deny unsound --deny yanked | |
| # --deny unsound: fail on soundness issues | |
| # --deny yanked: fail on yanked crates | |
| # unmaintained warnings do NOT fail the build | |
| deny: | |
| name: cargo deny (licenses + advisories) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: EmbarkStudios/cargo-deny-action@v2 | |
| with: | |
| command: check | |
| arguments: --all-features |