feat(ci): use cargo deny instead of cargo audit (#41)

This commit is contained in:
Hubert
2025-02-27 17:41:45 +01:00
committed by GitHub
parent cca6efd831
commit b334b5d891
3 changed files with 25 additions and 20 deletions
+16
View File
@@ -0,0 +1,16 @@
# This workflow will run `cargo-deny`, checking for dependency issues related to licensing, known vulnerabilities, and more.
# The configuration file is in [deny.toml](../../deny.toml).
name: Cargo Deny
on:
push:
branches:
- master
pull_request:
merge_group:
jobs:
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v2
-20
View File
@@ -56,26 +56,6 @@ jobs:
- name: Run clippy
run: cargo clippy --all --all-targets -- -D warnings
audit:
name: Audit
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Install Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: Install Audit
run: cargo install cargo-audit
- name: Rust Cache
uses: Swatinem/rust-cache@v2.7.7
- name: Run Audit
uses: actions-rs/cargo@v1
with:
command: audit
build:
name: Build
runs-on: ${{ matrix.os }}
+9
View File
@@ -0,0 +1,9 @@
[advisories]
ignore = []
[licenses]
allow = [
"Apache-2.0",
"MIT",
"Unicode-3.0"
]