Audit Rust dependencies #130
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
| # Rust Audit: CI for Rust audit of the operator node | |
| # | |
| # Overview: | |
| # 1. Check all the dependencies from Cargo.lock for reported vulnerabilities | |
| name: Audit Rust dependencies | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0 * * 0' | |
| push: | |
| paths: | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| # Explicit minimal permissions | |
| permissions: | |
| contents: read | |
| jobs: | |
| audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install cargo audit | |
| run: cargo install cargo-audit --locked | |
| - name: Scan for vulnerabilities | |
| run: cd operator && cargo audit |