CI: check dependency licences, bans and sources with cargo-deny #276
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!276
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-276"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@sombraSoft on GitHub · 2026-11-23 22:17 UTC · original
sombraSoft:ci/cargo-deny→main· +96 −1 · 3 files · 1 commits · openCONTRIBUTING.md requires every dependency to be GPL-2.0-compatible (no Apache-2.0-only, no GPL-3.0), but nothing checks it. This turns the rule into a cargo-deny check that blocks PRs. A separate workflow checks RustSec advisories daily, so a new advisory does not turn unrelated PRs red.
Part of #265
What is in it
deny.toml:x86_64-pc-windows-msvc.MIT OR Apache-2.0crates pass through MIT..github/workflows/ci.yml: a newdenyjob (ubuntu-latest,EmbarkStudios/cargo-deny-action@v2,check bans licenses sources). The header comment lists it..github/workflows/advisories.yml:check advisoriesruns daily, onworkflow_dispatch, and on pushes / PRs that touchCargo.lock,deny.tomlor the workflow.CI time
denyjob runs in parallel on Ubuntu and takes 19 s. The advisories workflow (22 s) runs only daily and on PRs that changeCargo.lock,deny.tomlor the workflow.Tested
cargo deny check(cargo-deny 0.22.0, Windows):advisories ok, bans ok, licenses ok, sources ok, plus the 2 duplicate warnings (syn, windows-sys). Every crate's licence was checked: 50 pass through MIT, and retour, unicode-ident and the 3 workspace crates use the other entries above.Dependencies (cargo-deny)green (https://github.com/sombraSoft/xcl/actions/runs/45276856646),Advisoriesgreen (https://github.com/sombraSoft/xcl/actions/runs/45276857241).main(9ab7d76), RTX 3060 Ti (driver 621.24), Ryzen 9 5900X, Windows 11, rustc 1.97.1, debug:scripts/test.ps1→ 651 passed, 0 failed, 40 ignored; SKIPPED: 2 (no wave64). This PR changes only CI config, so the compiled code is the same.Regression run
crates/xcl/srcchange.Not tested
pull_requesttrigger ran.AI use
@throny on GitHub · 2026-11-24 20:15 UTC · original
Two contributors checked independently and found that #599 solves the same problem (for #265) in a different way: #1607, group D37. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@DavidM1911 on GitHub · 2026-11-25 15:03 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.