Skip to content

Commit 627af8c

Browse files
authored
chore(gha): setup cargo-deny (#3816)
1 parent 97e7017 commit 627af8c

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ jobs:
8585
- name: CI cache clean
8686
run: cargo-ci-cache-clean
8787

88+
- name: deny check
89+
if: matrix.version.name == 'stable' && matrix.target.os == 'ubuntu-latest'
90+
uses: EmbarkStudios/cargo-deny-action@f2ba7abc2abebaf185c833c3961145a3c275caad # v2.0.13
91+
8892
io-uring:
8993
name: io-uring tests
9094
runs-on: ubuntu-latest

deny.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[licenses]
2+
confidence-threshold = 0.90
3+
allow = [
4+
"Apache-2.0",
5+
"MIT",
6+
"Unicode-3.0",
7+
"ISC",
8+
"CDLA-Permissive-2.0",
9+
"BSD-3-Clause",
10+
"Zlib",
11+
"OpenSSL",
12+
"MPL-2.0"
13+
]
14+
private = { ignore = true }
15+
16+
# FIXME: old rustls introduces old ring which is not set license field properly.
17+
[[licenses.clarify]]
18+
crate = "ring"
19+
expression = "MIT AND ISC AND OpenSSL"
20+
license-files = [
21+
{ path = "LICENSE", hash = 0xbd0eed23 }
22+
]
23+
24+
# FIXME: webpki is almost unmaintained and is not set license field properly.
25+
# rustls has its own fork now so removing old rustls should resolve the issue.
26+
[[licenses.clarify]]
27+
crate = "webpki"
28+
expression = "ISC"
29+
license-files = [
30+
{ path = "LICENSE", hash = 0x001c7e6c }
31+
]
32+
33+
[bans]
34+
multiple-versions = "allow"
35+
36+
[bans.build]
37+
executables = "deny"
38+
39+
[advisories]
40+
# because of old rustls support:
41+
ignore = [
42+
"RUSTSEC-2024-0336",
43+
"RUSTSEC-2025-0009",
44+
"RUSTSEC-2025-0010"
45+
]

0 commit comments

Comments
 (0)