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
70
71
72
73
74
75
76
77
78
79
80
81
# Deny.toml - Security and License Audit Configuration
# Configuration for cargo-deny, a Rust dependency auditing tool
# This enforces security and license policies for all dependencies
[]
# Fetch advisory databases automatically
= [
"https://github.com/rustsec/advisory-db",
]
= "30d" # Cache advisory DB for 30 days
# Advisory filtering criteria
= [
# List of advisory IDs to ignore (should be empty in production)
]
# Severity threshold for failures
= "high"
[]
# Prevent duplicate versions of packages
= "warn"
# Ban specific crates that are known to be problematic
= [
# Example: { name = "unmaintained-crate", versions = [">=1.0.0"] }
]
# Lint policy for wildcards in dependencies
= "allow"
# Skip certain crates in dependency resolution
= []
# Skip certain versions of a crate
= []
[]
# License policy settings
= [
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"Unicode-DFS-2016",
"ISC",
"CC0-1.0",
"Zlib",
"MPL-2.0",
"OpenSSL",
]
# Deny specific licenses
= [
# Licenses that are not allowed
]
# Copyleft license handling
= "warn"
# Clarify unclear license expressions
= [
# Example: { name = "ring", expression = "MIT AND ISC AND OpenSSL", license-files = [] }
]
[]
# Source allow/deny list
= "deny"
= "deny"
= [
# Trusted git sources can be added here
]
[]
# Regex-based ban rules for dependency patterns
[]
# Workspace-specific banning rules
= []
= false