chore(deps): Bump actions/dependency-review-action from 4.4.0 to 4.5.0 #627
Workflow file for this run
This file contains 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: Lint | |
on: [ push, pull_request ] | |
permissions: | |
contents: read | |
jobs: | |
rust: | |
name: Cargo clippy & fmt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
crates.io:443 | |
github.com:443 | |
index.crates.io:443 | |
static.crates.io:443 | |
static.rust-lang.org:443 | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Rust toolchain | |
run: rustup show && rustup update | |
- name: cargo fmt | |
run: cargo fmt -- --check | |
- name: cargo clippy | |
run: cargo clippy --workspace --all-features --tests -- -D warnings | |
udeps: | |
name: Unused dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
crates.io:443 | |
github.com:443 | |
index.crates.io:443 | |
objects.githubusercontent.com:443 | |
static.crates.io:443 | |
static.rust-lang.org:443 | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install nightly toolchain | |
uses: dtolnay/rust-toolchain@53c04d3685fcc3ca67ce478eb9c2ea5c051a4a63 # nightly | |
- name: Install cargo-udeps | |
run: cargo install cargo-udeps --locked | |
- name: Run udeps | |
run: cargo +nightly udeps | |
audit: | |
name: Cargo Audit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
crates.io:443 | |
github.com:443 | |
index.crates.io:443 | |
static.crates.io:443 | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install Cargo Audit | |
run: cargo install cargo-audit | |
- name: Run Cargo Audit | |
run: cargo audit |