Skip to content

Commit

Permalink
re-enable cargo-audit (#352)
Browse files Browse the repository at this point in the history
Re-enable cargo-audit in CI
  • Loading branch information
brayniac authored Sep 27, 2024
1 parent e7727b7 commit 2695e85
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-rust
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -29,7 +29,7 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-rust
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
Expand Down Expand Up @@ -57,35 +57,33 @@ jobs:
permissions:
security-events: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
name: clippy-sarif
- uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: clippy.sarif

# TODO(bmartin): re-enable audit check (#302)
# audit:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: Swatinem/rust-cache@v2
# with:
# shared-key: check-ubuntu-latest
# save-if: false
# - uses: baptiste0928/cargo-install@v1
# with:
# crate: cargo-audit
# args: --locked
# - run: |
# cargo audit
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-rust
- uses: Swatinem/rust-cache@v2
with:
shared-key: check-ubuntu-latest
save-if: false
- name: install cargo-audit
run: cargo install cargo-audit
- run: |
cargo audit
rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: cargo fmt
shell: bash
Expand All @@ -102,7 +100,7 @@ jobs:
os: [ ubuntu-24.04, ubuntu-22.04, macos-latest ]
profile: [ release, debug ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-rust
- uses: Swatinem/rust-cache@v2
with:
Expand Down

0 comments on commit 2695e85

Please sign in to comment.