Skip to content

chore(deps): Bump softprops/action-gh-release from 2.0.9 to 2.1.0 #2429

chore(deps): Bump softprops/action-gh-release from 2.0.9 to 2.1.0

chore(deps): Bump softprops/action-gh-release from 2.0.9 to 2.1.0 #2429

Workflow file for this run

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:
egress-policy: block
allowed-endpoints: >
azure.archive.ubuntu.com:80
crates.io:443
esm.ubuntu.com:443
github.com:443
index.crates.io:443
motd.ubuntu.com:443
ppa.launchpadcontent.net: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: Install GUI dependencies
run: sudo apt-get install -y libxcb-shape0-dev libxcb-xfixes0-dev libx11-dev libxkbcommon-dev libfontconfig-dev libxext-dev libxft-dev libxinerama-dev libxcursor-dev libxrender-dev libxfixes-dev
- 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
hack:
name: Cargo Hack
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
objects.githubusercontent.com:443
static.crates.io:443
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Cargo Hack
uses: taiki-e/install-action@3aeb53dd041c652ad28c1714cb9a10a4fbde32ff # cargo-hack
- name: Run Cargo Hack on MalwareDB
run: cargo hack check --each-feature --no-dev-deps
- name: Run Cargo Hack on malwaredb-types
run: |
cd crates/types
cargo hack check --each-feature --no-dev-deps
- name: Run Cargo Hack on malwaredb-server
run: |
cd crates/server
cargo hack check --each-feature --no-dev-deps
- name: Run Cargo Hack on malwaredb-client
run: |
cd client
cargo hack check --each-feature --no-dev-deps