Commit 6c00348
ci: fold the license check into the audit job via cargo-deny
Restores the dependency license check that went away with the copyright
job, this time as a gate rather than a report. Every dependency is
statically linked into GPL-3.0-or-later binaries, so each one has to
carry a GPL-3.0-compatible license, and the alternative to checking is
hearing about it from a distribution packager after release.
cargo-deny covers advisories as well, so it replaces cargo-audit
outright and the two jobs become one. Verified equivalent on the
advisory side: against the lock this branch carried before 64967a7, it
reports RUSTSEC-2026-0204 on crossbeam-epoch 0.9.18 and exits non-zero,
which is what cargo audit did.
Pin unmaintained, unsound, and yanked in the config rather than
inheriting them. cargo-deny defaults unsound to the workspace alone and
yanked to a warning, both looser than the cargo audit --deny warnings
the job ran until now; stating all three keeps a later cargo-deny
upgrade from relaxing the gate without anyone noticing.
The allow list holds only what the current tree needs. BSD-3-Clause and
Unicode-3.0 each look droppable but sit inside AND expressions, where
the permissive alternative cannot satisfy the requirement alone.
cargo-deny reports an allowance nothing matches, so an entry that stops
being needed will say so.
Name the config .deny.toml. cargo-deny looks for deny.toml, .deny.toml,
then .cargo/deny.toml, so the dotfile needs no --config flag and matches
how .rustfmt.toml and .codespellrc already sit in the tree.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent eeb48a8 commit 6c00348
2 files changed
Lines changed: 41 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
0 commit comments