Skip to content

feat(ci): add cargo-deny for dependency license and policy enforcement - #1169

Open
iRonin wants to merge 1 commit into
rtk-ai:developfrom
iRonin:feat/cargo-deny-ci
Open

iRonin wants to merge 1 commit into
rtk-ai:developfrom
iRonin:feat/cargo-deny-ci

Conversation

@iRonin

@iRonin iRonin commented Apr 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds cargo-deny to CI for automated dependency license and security policy enforcement.

This enforces the dependency security policy documented in SECURITY.md automatically in CI on every pull request.

Relates to #1164

What this adds

  • deny.toml — Project-level configuration defining allowed licenses, banned patterns, and source restrictions
  • cargo-deny CI job — Runs on every PR against master and develop, checking:
    • licenses — Ensures all dependencies use allowed licenses (MIT, Apache-2.0, Unicode-3.0, BSD-3-Clause, ISC, OpenSSL)
    • bans — Warns on multiple versions of the same crate and wildcard dependencies
    • sources — Denies unknown registries and git sources, only allowing crates.io

Why

  • Catches license compliance issues before merge
  • Prevents accidental addition of dependencies from untrusted sources
  • Aligns CI enforcement with the security policy in SECURITY.md
  • Runs independently of compilation — fast gate (no Rust toolchain needed)

@iRonin

iRonin commented Apr 10, 2026

Copy link
Copy Markdown
Contributor Author

Relates to #1164

@pszymkowiak pszymkowiak added effort-small Quelques heures, 1 fichier enhancement New feature or request labels Apr 10, 2026
@pszymkowiak

Copy link
Copy Markdown
Collaborator

[w] wshm · Automated triage by AI

📊 Automated PR Analysis

✨ Type feature
🟢 Risk low

Summary

Adds cargo-deny to the CI pipeline for automated dependency license, ban, and source policy enforcement. Introduces a deny.toml configuration file defining allowed licenses (MIT, Apache-2.0, Unicode-3.0, BSD-3-Clause, ISC, OpenSSL), ban policies, and source restrictions, along with a new CI job that runs on every PR against master and develop.

Review Checklist

  • Tests present
  • Breaking change
  • Docs updated

Analyzed automatically by wshm · This is an automated analysis, not a human review.

@iRonin
iRonin changed the base branch from master to develop April 10, 2026 13:10
@iRonin
iRonin force-pushed the feat/cargo-deny-ci branch 2 times, most recently from a839d59 to 8c24696 Compare April 10, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort-small Quelques heures, 1 fichier enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants