Adds Cargo Deny

pull/186/head
Tpt 3 years ago
parent a969563617
commit e95bf721dc
  1. 6
      .github/workflows/build.yml
  2. 43
      deny.toml

@ -27,6 +27,12 @@ jobs:
- run: rustup update && rustup component add clippy
- run: cargo clippy --all-targets --all-features
deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
test_linux:
runs-on: ubuntu-latest
steps:

@ -0,0 +1,43 @@
[advisories]
vulnerability = "deny"
unmaintained = "warn"
yanked = "warn"
notice = "warn"
ignore = []
[licenses]
unlicensed = "deny"
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"CECILL-B"
]
copyleft = "deny"
allow-osi-fsf-free = "either"
default = "deny"
confidence-threshold = 0.8
exceptions = [
# Optional dependency (from sophia_api)
{ allow = ["MPL-2.0"], name = "resiter", version = "*" }
]
[[licenses.clarify]]
name = "ring"
version = "*"
expression = "MIT AND ISC AND OpenSSL"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 }
]
[bans]
multiple-versions = "warn"
wildcards = "deny"
highlight = "all"
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
Loading…
Cancel
Save