-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
147: Migrate from `cargo audit` to `cargo deny` r=Nemo157 a=Nemo157 Co-authored-by: Wim Looman <git@nemo157.com>
- Loading branch information
Showing
6 changed files
with
65 additions
and
57 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: deny | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
cargo-deny-advisories: | ||
name: cargo deny advisories | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
with: | ||
command: check advisories | ||
|
||
cargo-deny-licenses: | ||
name: cargo deny bans licenses sources | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
with: | ||
command: check bans licenses sources | ||
|
||
on: | ||
push: | ||
branches: [staging, trying] | ||
pull_request: | ||
branches: [prīmum] |
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
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,32 @@ | ||
[advisories] | ||
ignore = [ | ||
# tokio 0.2 and 0.3 are both perma-vulnerable to these two advisories, | ||
# will be removed once support for them is dropped | ||
"RUSTSEC-2021-0072", | ||
"RUSTSEC-2021-0124", | ||
] | ||
|
||
[licenses] | ||
unlicensed = "deny" | ||
allow = [ | ||
"MIT", | ||
"Apache-2.0", | ||
"BSD-3-Clause", | ||
] | ||
default = "deny" | ||
|
||
[bans] | ||
multiple-versions = "warn" | ||
skip = [ | ||
# Used in the stream migration docs | ||
{ name = "tokio-util", version = "0.3" }, | ||
{ name = "tokio-util", version = "0.4" }, | ||
{ name = "tokio-util", version = "0.5" }, | ||
{ name = "tokio-util", version = "0.6" }, | ||
] | ||
skip-tree = [ | ||
{ name = "tokio", version = "0.2" }, | ||
{ name = "tokio", version = "0.3" }, | ||
{ name = "proptest", version = "1.0" }, | ||
{ name = "proptest-derive", version = "0.3" }, | ||
] |