ci: enforce dependency license allowlist with cargo-deny#201
Open
pgherveou wants to merge 1 commit into
Open
Conversation
Add a 'Dependency licenses' CI job running 'cargo deny check licenses' against the deny.toml allowlist, and include it in the ci-status gate so a disallowed (e.g. copyleft) dependency fails the build.
TarikGul
approved these changes
Jun 5, 2026
filvecchiato
approved these changes
Jun 5, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Wires the existing
deny.tomllicense allowlist into CI so it is actually enforced on every PR. A new Dependency licenses job runscargo deny check licensesand is included in theci-statusgate, so a disallowed (e.g. copyleft) dependency fails the build instead of slipping in unnoticed.deny.tomland the MIT license metadata landed in #200; that left the check runnable only by hand. This job closes that gap.Details
licensesjob usesEmbarkStudios/cargo-deny-action(pinned by commit SHA, matching the repo's pinning convention) withcommand: check licenses.needslist and result aggregation of theci-statusjob so a failure blocks merge.Test plan
cargo deny check licensespasses locally against the current dependency tree (licenses ok).