Skip to content

Run cargo deny check in Analyze job #2340

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
merged 6 commits into from
Apr 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
".vscode/settings.json",
".vscode/tasks.json",
"NOTICE.txt",
"deny.toml",
"eng/",
"**/.dict.txt",
"rust-toolchain.toml"
Expand Down
168 changes: 38 additions & 130 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[graph]
all-features = true
exclude-dev = true

[advisories]
git-fetch-with-cli = true
ignore = [
{ id = "RUSTSEC-2024-0384", reason = "We're tracking https://github.com/minghuaw/fe2o3-amqp/issues/306" },
]

[licenses]
allow = [
"Apache-2.0",
"BSD-3-Clause",
"BSL-1.0",
"ISC",
"MIT",
# "OpenSSL",
"Unicode-3.0",
]

[[licenses.clarify]]
name = "ring"
expression = "MIT AND ISC AND OpenSSL"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 },
]

[bans]
multiple-versions = "allow"
wildcards = "deny"
allow-wildcard-paths = true
deny = [
"ring",
"smol",
]

[sources]
unknown-registry = "deny"
unknown-git = "deny"
1 change: 1 addition & 0 deletions eng/dict/rust-custom.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ repr
rustc
rustflags
rustls
rustsec
turbofish
1 change: 1 addition & 0 deletions eng/pipelines/templates/jobs/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
arguments: >
-PackageInfoDirectory '$(Build.ArtifactStagingDirectory)/PackageInfo'
-SkipPackageAnalysis:('$(NoPackagesChanged)' -eq 'true')
-Deny

- template: /eng/common/pipelines/templates/steps/check-spelling.yml
parameters:
Expand Down
Loading