Skip to content

ci: enforce dependency license allowlist with cargo-deny#201

Open
pgherveou wants to merge 1 commit into
mainfrom
ci/enforce-license-allowlist
Open

ci: enforce dependency license allowlist with cargo-deny#201
pgherveou wants to merge 1 commit into
mainfrom
ci/enforce-license-allowlist

Conversation

@pgherveou
Copy link
Copy Markdown
Collaborator

Summary

Wires the existing deny.toml license allowlist into CI so it is actually enforced on every PR. A new Dependency licenses job runs cargo deny check licenses and is included in the ci-status gate, so a disallowed (e.g. copyleft) dependency fails the build instead of slipping in unnoticed.

deny.toml and the MIT license metadata landed in #200; that left the check runnable only by hand. This job closes that gap.

Details

  • New licenses job uses EmbarkStudios/cargo-deny-action (pinned by commit SHA, matching the repo's pinning convention) with command: check licenses.
  • Added to the needs list and result aggregation of the ci-status job so a failure blocks merge.

Test plan

  • cargo deny check licenses passes locally against the current dependency tree (licenses ok).
  • CI will exercise the job on this PR.

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.
@pgherveou pgherveou requested a review from a team June 5, 2026 13:49
@filvecchiato filvecchiato added this pull request to the merge queue Jun 5, 2026
@pgherveou pgherveou removed this pull request from the merge queue due to the queue being cleared Jun 5, 2026
@pgherveou pgherveou added this pull request to the merge queue Jun 5, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants