Skip to content

Commit 55e4fb9

Browse files
committed
Add a cargo audit config
Ignore some vulnerabilities that we do not trigger in our code and that are causing problems to fix due to MSRV. Signed-off-by: Hugues de Valon <[email protected]>
1 parent ee038a8 commit 55e4fb9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.cargo/audit.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[advisories]
2+
ignore = ["RUSTSEC-2021-0073", # We do not use `prost_types::Timestamp` anywhere in our code.
3+
"RUSTSEC-2020-0036"] # We don't have control over the exact dependencies of `protoc-grpcio`; See https://github.com/mtp401/protoc-grpcio/issues/36
4+
informational_warnings = ["unmaintained"] # warn for categories of informational advisories
5+
severity_threshold = "low" # CVSS severity ("none", "low", "medium", "high", "critical")
6+
7+
# Advisory Database Configuration
8+
[database]
9+
path = "/tmp/advisory-db" # Path where advisory git repo will be cloned
10+
url = "https://github.com/RustSec/advisory-db.git" # URL to git repo
11+
fetch = true # Perform a `git fetch` before auditing
12+
stale = false # Allow stale advisory DB (i.e. no commits for 90 days)
13+
14+
# Output Configuration
15+
[output]
16+
deny = ["unmaintained"] # exit on error if unmaintained dependencies are found
17+
format = "terminal" # "terminal" (human readable report) or "json"
18+
quiet = false # Only print information on error
19+
show_tree = true # Show inverse dependency trees along with advisories
20+
21+
# Target Configuration
22+
[target]
23+
arch = "x86_64" # Ignore advisories for CPU architectures other than this one
24+
os = "linux" # Ignore advisories for operating systems other than this one
25+
26+
[packages]
27+
source = "all" # "all", "public" or "local"
28+
29+
[yanked]
30+
enabled = true # Warn for yanked crates in Cargo.lock
31+
update_index = true # Auto-update the crates.io index

0 commit comments

Comments
 (0)