Rust Audit #1574
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: Rust Audit | |
| on: | |
| workflow_dispatch: # Allow manual running to refresh/check cache | |
| schedule: | |
| - cron: '0 2 * * *' | |
| pull_request: | |
| paths: | |
| - 'rust/**/Cargo.toml' | |
| - 'rust/**/Cargo.lock' | |
| - '.github/workflows/rust-audit.yaml' | |
| env: | |
| SCCACHE_GHA_ENABLED: "true" | |
| SSCACHE_CACHE_SIZE: "2G" | |
| RUSTC_WRAPPER: "sccache" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.93 | |
| - uses: mozilla-actions/sccache-action@v0.0.9 | |
| - name: Install cargo audit | |
| run: cargo install --locked cargo-audit | |
| - name: Audit | |
| working-directory: ./rust | |
| run: cargo audit |