Skip to content

fix: reject unknown git sources in cargo-deny - #344

Merged
MaximeGaudin merged 1 commit into
mainfrom
fix/issue-216-unknown-git
Aug 29, 2026
Merged

fix: reject unknown git sources in cargo-deny#344
MaximeGaudin merged 1 commit into
mainfrom
fix/issue-216-unknown-git

Conversation

@MaximeGaudin

Copy link
Copy Markdown
Owner

Summary

  • [sources] had unknown-git = "allow", so a dependency pulled from an arbitrary git URL would pass the source check as long as it wasn't in allow-git (which is empty).
  • Set unknown-git = "deny". A git dependency now fails cargo deny check unless it is explicitly added to allow-git with a reason.

Fixes #216

Test plan

  • The current dependency graph has no git sources (source = "git" is absent from Cargo.lock), so cargo deny check sources passes with the stricter setting.
  • CI green on the PR

@MaximeGaudin
MaximeGaudin merged commit d5687f0 into main Aug 29, 2026
8 checks passed
@MaximeGaudin
MaximeGaudin deleted the fix/issue-216-unknown-git branch August 29, 2026 08:14
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.

deny.toml allows unknown git sources for dependencies

1 participant