-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ci: add cargo-deny for license, advisory, and source auditing #653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+67
−0
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
904406c
ci: add cargo-deny configuration for supply chain auditing
jpoehnelt-bot ae47944
Update deny.toml
jpoehnelt d013857
Update deny.toml
jpoehnelt 252e2cc
Update deny.toml
jpoehnelt 3047cd2
Update deny.toml
jpoehnelt 8e8348f
Update deny.toml
jpoehnelt ad47efb
ci: add cargo-deny to workflow
jpoehnelt-bot 8426608
ci: explicitly deny unmaintained, yanked, and unlicensed crates per r…
jpoehnelt-bot ac13de0
ci: remove deprecated cargo-deny keys and restore valid config
jpoehnelt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
| --- | ||
| "@googleworkspace/cli": patch | ||
| --- | ||
|
|
||
| Add cargo-deny configuration for license, advisory, and source auditing |
This file contains hidden or 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 hidden or 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,49 @@ | ||
| # cargo-deny configuration | ||
jpoehnelt marked this conversation as resolved.
Show resolved
Hide resolved
jpoehnelt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # https://embarkstudios.github.io/cargo-deny/ | ||
|
|
||
| [graph] | ||
| targets = [ | ||
| "x86_64-unknown-linux-gnu", | ||
| "x86_64-unknown-linux-musl", | ||
| "aarch64-unknown-linux-gnu", | ||
| "aarch64-unknown-linux-musl", | ||
| "x86_64-apple-darwin", | ||
| "aarch64-apple-darwin", | ||
| "x86_64-pc-windows-msvc", | ||
| ] | ||
|
|
||
| # Advisories — checks for known vulnerable crate versions | ||
| [advisories] | ||
| ignore = [] | ||
| db-urls = ["https://github.com/rustsec/advisory-db"] | ||
jpoehnelt marked this conversation as resolved.
Show resolved
Hide resolved
jpoehnelt marked this conversation as resolved.
Show resolved
Hide resolved
jpoehnelt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Licenses — allowlist of acceptable licenses | ||
| [licenses] | ||
| allow = [ | ||
jpoehnelt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "Apache-2.0", | ||
| "Apache-2.0 WITH LLVM-exception", | ||
| "MIT", | ||
| "BSD-2-Clause", | ||
| "BSD-3-Clause", | ||
| "ISC", | ||
| "Unicode-3.0", | ||
| "Unicode-DFS-2016", | ||
| "Zlib", | ||
| "OpenSSL", | ||
| "MPL-2.0", | ||
| "CC0-1.0", | ||
| "BSL-1.0", | ||
| ] | ||
|
|
||
| # Bans — reject problematic and duplicate crates | ||
| [bans] | ||
| multiple-versions = "warn" | ||
jpoehnelt marked this conversation as resolved.
Show resolved
Hide resolved
jpoehnelt marked this conversation as resolved.
Show resolved
Hide resolved
jpoehnelt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| wildcards = "deny" | ||
| deny = [] | ||
|
|
||
| # Sources — restrict where crates can come from | ||
| [sources] | ||
| unknown-registry = "deny" | ||
| unknown-git = "deny" | ||
| allow-registry = ["https://github.com/rust-lang/crates.io-index", "https://index.crates.io/"] | ||
| allow-git = [] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.