Repository navigation
Fix CI: explicit toolchain for the pinned action, SC2015, dependabot #6
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
| # Advisories appear after a commit is merged, so this runs on a schedule as well as on | |
| # every change to a lock file. The local pre-push hook runs the same tool, but only when | |
| # someone happens to push. | |
| name: audit | |
| on: | |
| push: | |
| paths: ['**/Cargo.lock', '**/Cargo.toml', '.github/workflows/audit.yml'] | |
| pull_request: | |
| paths: ['**/Cargo.lock', '**/Cargo.toml'] | |
| schedule: | |
| - cron: '17 6 * * 1' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| cargo-audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| with: | |
| persist-credentials: false | |
| # Pinned by SHA, so the toolchain name has to be given explicitly. | |
| - uses: dtolnay/rust-toolchain@d1031067263f94b142dd6c0ce24c5eb9d02d52a0 # stable | |
| with: | |
| toolchain: stable | |
| - run: cargo install cargo-audit --locked | |
| - run: cargo audit --file firmware/Cargo.lock | |
| - run: cargo audit --file cli/Cargo.lock |