Skip to content

Commit

Permalink
Do not use GH action for cargo audit
Browse files Browse the repository at this point in the history
  • Loading branch information
keithtensor committed Aug 27, 2024
1 parent 80d2073 commit 8641afc
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/check-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,29 @@ jobs:
- name: Check-out repositoroy under $GITHUB_WORKSPACE
uses: actions/checkout@v4

- name: Audit check
uses: rustsec/[email protected]
- name: Install dependencies
run: |
sudo apt-get update &&
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
- name: Install Rust ${{ matrix.rust-branch }}
uses: actions-rs/[email protected]
with:
toolchain: ${{ matrix.rust-branch }}
components: rustfmt, clippy
profile: minimal

- name: Utilize Shared Rust Cache
uses: Swatinem/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}

- name: Install cargo-audit
run: cargo install cargo-audit

- name: cargo audit
run: cargo audit

# runs cargo test --workspace
cargo-test:
name: cargo test
Expand Down

0 comments on commit 8641afc

Please sign in to comment.