Skip to content

Commit 25325a5

Browse files
committed
ci: run cargo-deny
1 parent c19b174 commit 25325a5

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@ defaults:
1414
shell: bash
1515

1616
jobs:
17+
cargo-deny:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
checks:
22+
- advisories
23+
- bans licenses sources
24+
# Prevent sudden announcement of a new advisory from failing ci:
25+
continue-on-error: ${{ matrix.checks == 'advisories' }}
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: EmbarkStudios/cargo-deny-action@v2
29+
with:
30+
command: check ${{ matrix.checks }}
31+
1732
check:
1833
name: Check
1934
runs-on: ubuntu-latest

deny.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[graph]
2+
targets = [
3+
"x86_64-unknown-none",
4+
"aarch64-unknown-none-softfloat",
5+
"riscv64gc-unknown-none-elf",
6+
]
7+
all-features = true
8+
9+
[licenses]
10+
allow = [
11+
"0BSD",
12+
"Apache-2.0",
13+
"MIT",
14+
"MPL-2.0",
15+
"ISC",
16+
"Unicode-3.0",
17+
]
18+
confidence-threshold = 1.0

0 commit comments

Comments
 (0)