-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): Add deny.yaml and a cargo deny CI job to check dependenc…
…ies for vulnerabilities Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
116 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
[advisories] | ||
ignore = [ | ||
# No upgrade available for rsa 0.9.4, a direct dependency of sqlx-mysql | ||
"RUSTSEC-2023-0071", | ||
] | ||
notice = "deny" | ||
unmaintained = "deny" | ||
vulnerability = "deny" | ||
yanked = "deny" | ||
|
||
[licenses] | ||
allow = [ | ||
"Apache-2.0", | ||
"BSD-2-Clause", | ||
"BSD-3-Clause", | ||
"ISC", | ||
"MIT", | ||
"MPL-2.0", | ||
"OpenSSL", | ||
"Unicode-DFS-2016", | ||
"Zlib", | ||
] | ||
default = "deny" | ||
confidence-threshold = 0.9 | ||
unlicensed = "deny" | ||
|
||
[[licenses.clarify]] | ||
name = "ring" | ||
expression = "MIT AND ISC AND OpenSSL" | ||
license-files = [ | ||
{ path = "LICENSE", hash = 0xbd0eed23 } | ||
] | ||
|
||
[bans] | ||
allow = [] | ||
deny = [] | ||
multiple-versions = "deny" | ||
skip = [ | ||
# async-std 1.12 uses two versions - this older version directly, and a newer verison transitively. | ||
{ name = "async-channel", version = "=1.9.0" }, | ||
# native-tls 0.2.11 has this older version as a transitive dependency | ||
{ name = "spin", version = "=0.5.2" }, | ||
# criterion 0.5.1 uses this older version of itertools | ||
{ name = "itertools", version = "=0.10.5" }, | ||
# syn 2.0 has not been adopted by many crates using syn 1.x due to difficult breaking changes | ||
{ name = "syn", version = "<2" }, | ||
] | ||
skip-tree = [ | ||
# async-std 1.12 uses two versions - this older version directly, and a newer verison transitively. | ||
{ name = "async-io", version = "=1.13.0" }, | ||
] | ||
|
||
# Warn, rather than deny, due to sqlx crates not referencing each other by a specific version | ||
wildcards = "warn" | ||
|
||
[sources] | ||
allow-git = [] | ||
allow-registry = [ | ||
"https://github.com/rust-lang/crates.io-index" | ||
] | ||
unknown-git = "deny" | ||
unknown-registry = "deny" | ||
|
||
[sources.allow-org] | ||
bitbucket = [] | ||
github = [] | ||
gitlab = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters