Security Vulnerabilities Check #93
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 Vulnerabilities Check | |
| on: | |
| schedule: | |
| # runs once a week | |
| # * is a special character in YAML so you have to quote this string | |
| - cron: "0 0 * * 0" | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| jobs: | |
| scan: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| ############ Setup ############ | |
| - name: Repo checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: 1.92.0 | |
| - name: Install cargo-audit | |
| uses: baptiste0928/cargo-install@v3 | |
| with: | |
| crate: cargo-audit | |
| version: 0.22.1 | |
| locked: true | |
| ############ Checks ############ | |
| - name: Audit | |
| run: cargo audit -D warnings | |
| # its enough to only check the top level Cargo.lock because we are in a workspace | |
| working-directory: executorch |