ci: switch from cargo-audit to cargo-deny

Fix #110
This commit is contained in:
Guillaume Desmottes 2020-04-16 13:03:28 +02:00
parent f34673b704
commit 3d1df3ca25
2 changed files with 58 additions and 2 deletions

View file

@ -165,13 +165,13 @@ clippy:
script:
- cargo clippy --color=always --all --all-features --all-targets -- -A clippy::redundant_pattern_matching -A clippy::single_match -A clippy::cast_lossless -D warnings
audit:
deny:
extends: .img-stable
stage: 'extras'
only:
- schedules
script:
- cargo audit --deny-warnings
- cargo deny check
outdated:
extends: .img-stable

56
deny.toml Normal file
View file

@ -0,0 +1,56 @@
[advisories]
db-path = "~/.cargo/advisory-db"
db-url = "https://github.com/rustsec/advisory-db"
vulnerability = "deny"
unmaintained = "warn"
notice = "warn"
ignore = []
[licenses]
unlicensed = "deny"
allow = [
"Apache-2.0",
]
deny = [
"GPL-1.0",
"GPL-2.0",
"GPL-3.0",
"AGPL-1.0",
"AGPL-3.0",
]
copyleft = "allow"
allow-osi-fsf-free = "either"
confidence-threshold = 0.8
[bans]
multiple-versions = "warn"
highlight = "all"
skip-tree = [
# Need to upgrade rusoto dep: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/312
{ name = "gst-plugin-rusoto" },
{ name = "rusoto_core" },
# Metadeps needs to update error-chain: https://github.com/joshtriplett/metadeps/pull/12
{ name = "metadeps", depth = 2 },
# Need a dav1d release: https://github.com/rust-av/dav1d-rs/issues/30
{ name = "dav1d-sys" }
]
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-git = [
"https://gitlab.freedesktop.org/gstreamer/gstreamer-rs",
"https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys",
"https://github.com/gtk-rs/sys",
"https://github.com/gtk-rs/glib",
"https://github.com/gtk-rs/gio",
"https://github.com/gtk-rs/cairo",
"https://github.com/gtk-rs/pango",
"https://github.com/gtk-rs/atk",
"https://github.com/gtk-rs/gdk-pixbuf",
"https://github.com/gtk-rs/gdk",
"https://github.com/gtk-rs/gtk",
"https://github.com/fengalin/tokio",
"https://github.com/rust-av/flavors",
]