Skip to content

Commit

Permalink
Replace cargo-audit with cargo-deny
Browse files Browse the repository at this point in the history
`cargo-audit` is likely going to be replaced by `cargo-deny`
See this issue: EmbarkStudios/cargo-deny#194
  • Loading branch information
Veetaha committed Aug 2, 2020
1 parent e4d0f19 commit abfc144
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,12 @@ env:
RUSTUP_MAX_RETRIES: 10

jobs:
# rust-audit:
# name: Audit Rust vulnerabilities
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2

# - uses: actions-rs/install@v0.1
# with:
# crate: cargo-audit
# use-tool-cache: true

# - run: cargo audit
cargo-deny-check:
name: Audit Rust codebase
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1

rust:
name: Rust
Expand Down
56 changes: 56 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# See docs: https://embarkstudios.github.io/cargo-deny/checks/index.html

[advisories]
vulnerability = "deny"
unmaintained = "deny"
yanked = "deny"
ignore = [
# This crate is used through `vfs-notify`.
#
# Original error message:
# The [`net2`](https://crates.io/crates/net2) crate has been deprecated
# and users are encouraged to considered [`socket2`](https://crates.io/crates/socket2) instead.
"RUSTSEC-2020-0016"
]
notice = "deny"

[bans]
multiple-versions = "deny"
skip = [
# This older version of winapi is pulled through vfs-notify
{ version = "=0.2.8", name = "winapi" }

# { version = "=0.42.0", name = "crate_name_here" },
]
skip-tree = [
# { version = "=0.42.0", name = "crate_name_here", depth = 6 },
]
deny = []

[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []

[licenses]
unlicensed = "deny"
copyleft = "deny"

# Run `cargo deny list` to see which crates use which license
# and add them to this array if you accept them
allow = [
"MIT",
"Apache-2.0",
"ISC",
"BSD-2-Clause",
"BSD-3-Clause",
"CC0-1.0",
"Zlib",
]
deny = []
default = "deny"
allow-osi-fsf-free = "neither"

# We want really high confidence when inferring licenses from text
confidence-threshold = 0.93

0 comments on commit abfc144

Please sign in to comment.