Idea: cargo-deny in CI: advisories, yanked crates, crates.io only (and pin-project-lite 0.2.19) #3263

Closed
opened 2026-12-05 17:22:17 +00:00 by llun · 1 comment
Member

The idea

Run cargo-deny (or cargo audit) in CI on Cargo.lock:

  • advisories: RustSec advisories and yanked crates fail the check;
  • sources: crates.io only, so a git or other registry dependency has to be allowed on purpose;
  • optionally licenses and bans (duplicate versions).

Why

Every crate in Cargo.lock matches crates.io today: I checked every checksum against crates.io's index while looking into LongshotLauncher issue 379. But nothing would tell us when one of them gets a security advisory or is pulled by its maintainer. One already has been: pin-project-lite 0.2.18 was yanked on 2 December for a soundness bug fixed in 0.2.19. That bug is in the macro's checking, not malware, and it has no advisory. cargo update -p pin-project-lite takes it to 0.2.19.

Done when

  • CI fails on a crate with an advisory, a yanked crate, or a crate from outside crates.io;
  • pin-project-lite is at 0.2.19 or later;
  • the check's config is committed.
### The idea Run [cargo-deny](https://github.com/EmbarkStudios/cargo-deny) (or `cargo audit`) in CI on `Cargo.lock`: - `advisories`: RustSec advisories and yanked crates fail the check; - `sources`: crates.io only, so a git or other registry dependency has to be allowed on purpose; - optionally `licenses` and `bans` (duplicate versions). ### Why Every crate in `Cargo.lock` matches crates.io today: I checked every checksum against crates.io's index while looking into [LongshotLauncher issue 379](https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/issues/379). But nothing would tell us when one of them gets a security advisory or is pulled by its maintainer. One already has been: `pin-project-lite 0.2.18` was yanked on 2 December for a soundness bug fixed in 0.2.19. That bug is in the macro's checking, not malware, and it has no advisory. `cargo update -p pin-project-lite` takes it to 0.2.19. ### Done when - CI fails on a crate with an advisory, a yanked crate, or a crate from outside crates.io; - `pin-project-lite` is at 0.2.19 or later; - the check's config is committed.
Member

This looks like the same problem as MagicBeanDev/LongshotLauncher#420 (Idea: cargo-deny in CI: advisories, yanked crates, crates.io only (and pin-project-lite 0.2.19)), so I'm closing this one to keep the discussion in one place.

LongshotLauncher#420 proposes the same cargo-deny CI checks and pin-project-lite update, with the same criteria.

If it's different, reopen it and say how.


For maintainers

Exact matching open issue found in MagicBeanDev/LongshotLauncher#420.


Automated triage by BeanBot (gpt-6-luna). Nothing was run; a maintainer decides.

This looks like the same problem as MagicBeanDev/LongshotLauncher#420 (Idea: cargo-deny in CI: advisories, yanked crates, crates.io only (and pin-project-lite 0.2.19)), so I'm closing this one to keep the discussion in one place. LongshotLauncher#420 proposes the same cargo-deny CI checks and pin-project-lite update, with the same criteria. If it's different, reopen it and say how. --- **For maintainers** Exact matching open issue found in MagicBeanDev/LongshotLauncher#420. --- <sub>Automated triage by BeanBot (gpt-6-luna). Nothing was run; a maintainer decides.</sub>
BeanBot 2026-12-05 17:23:21 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot#3263
No description provided.