This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cargo deny to audit licenses of dependencies
- Add earthly target `check-license` for checking licenses - Update github actions to `cargo deny licenses sources bans` on every pr excluding advisories - Add github action nightly job to run `cargo deny` including advisories
- Loading branch information
1 parent
a63355f
commit ee1c4e5
Showing
4 changed files
with
75 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Nightly `cargo deny` checks | ||
on: | ||
schedule: | ||
- cron: '17 6 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
cargo-deny: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 |
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,51 @@ | ||
[advisories] | ||
db-path = "~/.cargo/advisory-db" | ||
db-urls = ["https://github.com/rustsec/advisory-db"] | ||
vulnerability = "deny" | ||
unmaintained = "deny" | ||
yanked = "deny" | ||
notice = "deny" | ||
ignore = [ | ||
#"RUSTSEC-0000-0000", | ||
] | ||
# * None - CVSS Score 0.0 | ||
# * Low - CVSS Score 0.1 - 3.9 | ||
# * Medium - CVSS Score 4.0 - 6.9 | ||
# * High - CVSS Score 7.0 - 8.9 | ||
# * Critical - CVSS Score 9.0 - 10.0 | ||
severity-threshold = "High" | ||
|
||
[licenses] | ||
default = "deny" | ||
copyleft = "deny" | ||
unlicensed = "deny" | ||
allow = [ | ||
"MIT", | ||
"Apache-2.0", | ||
"Unicode-DFS-2016", | ||
"BSD-3-Clause", | ||
"ISC", | ||
] | ||
allow-osi-fsf-free = "neither" | ||
confidence-threshold = 0.8 | ||
exceptions = [ | ||
{ name = "wolfssl-sys", allow = ["GPL-2.0"], version = "*" }, | ||
] | ||
|
||
[licenses.private] | ||
ignore = true | ||
|
||
[bans] | ||
multiple-versions = "warn" | ||
wildcards = "allow" | ||
highlight = "all" | ||
workspace-default-features = "allow" | ||
external-default-features = "allow" | ||
|
||
[sources] | ||
unknown-registry = "deny" | ||
unknown-git = "deny" | ||
allow-registry = ["https://github.com/rust-lang/crates.io-index"] | ||
allow-git = [ | ||
"https://github.com/open-quantum-safe/liboqs-rust", | ||
] |