Rust Cargo Audit #533
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 Cargo Audit | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| schedule: | |
| - cron: "0 10 * * *" | |
| jobs: | |
| cargo-audit: | |
| name: Cargo Audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository with submodules | |
| uses: actions/checkout@v4.1.4 | |
| with: | |
| submodules: recursive # This will fetch all submodules recursively | |
| - name: Setup Rust toolchain | |
| run: | | |
| rustup toolchain install 1.91.1 --profile minimal | |
| rustup component add clippy | |
| rustup component add rustfmt | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y linux-headers-$(uname -r) libbpf-dev clang llvm | |
| - name: Install cargo audit | |
| run: cargo install cargo-audit | |
| - name: Run cargo audit | |
| run: cargo audit |