-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcargo-deny.toml
More file actions
69 lines (61 loc) · 1.4 KB
/
cargo-deny.toml
File metadata and controls
69 lines (61 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Cargo Deny Configuration
# Security policy for Rust dependencies
[advisories]
# Deny crates with security vulnerabilities
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "warn"
yanked = "warn"
notice = "warn"
ignore = [
# Add CVE IDs here to explicitly ignore (with justification)
]
[licenses]
# Deny licenses that are not compatible with our project
unlicensed = "deny"
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-DFS-2016",
"Zlib",
"0BSD",
]
deny = [
"GPL-2.0",
"GPL-3.0",
"AGPL-3.0",
]
copyleft = "deny"
allow-osi-fsf-free = "both"
default = "deny"
confidence-threshold = 0.8
# Specific licenses for known dependencies
[[licenses.clarify]]
name = "ring"
expression = "ISC AND OpenSSL AND MIT"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 }
]
[bans]
# Deny multiple versions of the same crate
multiple-versions = "warn"
wildcards = "allow"
highlight = "all"
# Skip checking certain crates
skip = []
# Skip certain dependency trees
skip-tree = []
[sources]
# Deny dependencies from unknown sources
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []
[sources.allow-org]
# Allow dependencies from these GitHub orgs
github = ["rustsec"]