-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
43 lines (39 loc) · 1.32 KB
/
Copy pathdeny.toml
File metadata and controls
43 lines (39 loc) · 1.32 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
# cargo-deny policy. Complements `cargo audit` (RustSec advisories) with
# licence-policy enforcement, duplicate/wildcard detection, and source
# allowlisting. Run by the `deny` CI job (EmbarkStudios/cargo-deny-action).
#
# NOTE: the `licenses.allow` list below is a broad permissive set covering the
# common Rust ecosystem. The first CI run may surface a transitive crate whose
# licence is not yet listed — add it (or an `exceptions` entry) rather than
# widening the policy blindly.
[advisories]
version = 2
# Fail on any crate pulled from a source with a known advisory. (Overlaps the
# standalone `cargo audit` job by design — defence in depth.)
yanked = "deny"
[licenses]
version = 2
confidence-threshold = 0.9
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Zlib",
"MPL-2.0",
"Unicode-3.0",
"Unicode-DFS-2016",
"CC0-1.0",
]
[bans]
# Duplicate versions stay a warning: the workspace deliberately pins some deps
# and Dependabot grooms duplicates. Wildcard requirements are denied — none
# exist today, so this is a free ratchet that keeps unpinned `*` deps out.
multiple-versions = "warn"
wildcards = "deny"
[sources]
# Only crates.io (and explicitly-allowed git sources) may be pulled.
unknown-registry = "deny"
unknown-git = "deny"