forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOSE-498 Crate supply chain management (e.g. open-source license veri…
…fication) (openzfs#94) Signed-off-by: Paul Dagnelie <pcd@delphix.com>
- Loading branch information
1 parent
dbfa19d
commit 44162b5
Showing
11 changed files
with
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: cargo-deny | ||
on: [push, pull_request] | ||
jobs: | ||
cargo-deny: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
checks: | ||
- advisories | ||
- bans licenses sources | ||
|
||
# Prevent sudden announcement of a new advisory from failing ci: | ||
continue-on-error: ${{ matrix.checks == 'advisories' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
with: | ||
command: check ${{ matrix.checks }} | ||
arguments: --all-features --manifest-path=cmd/zfs_object_agent/Cargo.toml |
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,45 @@ | ||
vulnerability = "deny" | ||
unmaintained = "warn" | ||
yanked = "warn" | ||
notice = "warn" | ||
|
||
# | ||
# We don't want to violate the licenses of anything we depend on, so we forbid | ||
# any strong copyleft licenses like the GPL that would require the whole | ||
# project to be GPL. | ||
# | ||
[licenses] | ||
unlicensed = "deny" | ||
copyleft = "deny" | ||
allow-osi-fsf-free = "both" | ||
default = "deny" | ||
confidence-threshold = 0.95 | ||
allow = [ | ||
"CC0-1.0", | ||
"BSD-2-Clause", | ||
"MPL-2.0", | ||
] | ||
# | ||
# XXX This is here because our packages are currently unlicensed; when they | ||
# are licensed and published, we should remove this line. | ||
# | ||
private = { ignore = true } | ||
|
||
[sources] | ||
allow-git = [ | ||
"https://github.com/ahrens/rust-libzfs", | ||
] | ||
|
||
[sources.allow-org] | ||
github = ["delphix"] | ||
|
||
[advisories] | ||
ignore = [ | ||
# | ||
# See https://github.com/time-rs/time/issues/293 for more information; | ||
# we don't use any of the functions in question, and we don't have | ||
# threads setting the time environment variables while we run. | ||
# | ||
"RUSTSEC-2020-0071", | ||
"RUSTSEC-2020-0159", | ||
] |
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
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
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