Skip to content

Audit

Audit #4080

Workflow file for this run

name: Audit
env:
MSRV: 1.77.0
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches: [main]
schedule:
- cron: "0 0 * * *"
merge_group:
types: [checks_requested]
jobs:
audit:
needs: [cargo-deny] # security-audit,
runs-on: ubuntu-latest
if: always()
steps:
- run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
- name: Done
run: exit 0
security-audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MSRV }}
- run: cargo audit
cargo-deny:
name: Cargo Deny
runs-on: ubuntu-latest
strategy:
matrix:
checks:
- advisories
- bans
- licenses
- sources
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: EmbarkStudios/cargo-deny-action@v2
with:
rust-version: ${{ env.MSRV }}
command: check ${{ matrix.checks }} -s
arguments: --all-features
log-level: warn