Skip to content

Commit 4ac64e9

Browse files
authored
chore(gha): setup cargo-deny (#614)
1 parent 344aa99 commit 4ac64e9

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ jobs:
5757
if: matrix.version.name == 'msrv'
5858
run: just downgrade-for-msrv
5959

60+
- name: deny check
61+
if: matrix.version.name == 'stable' && matrix.target.os == 'ubuntu-latest'
62+
uses: EmbarkStudios/cargo-deny-action@f2ba7abc2abebaf185c833c3961145a3c275caad # v2.0.13
63+
6064
- name: check minimal
6165
run: cargo ci-min
6266

deny.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[licenses]
2+
confidence-threshold = 0.90
3+
allow = [
4+
"Apache-2.0",
5+
"MIT",
6+
"Unicode-3.0",
7+
"BSD-3-Clause",
8+
"Zlib",
9+
"ISC",
10+
]
11+
private = { ignore = true }
12+
13+
[bans]
14+
multiple-versions = "allow"
15+
16+
[bans.build]
17+
executables = "deny"

0 commit comments

Comments
 (0)