Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "unknown advisory" detection #275

Merged
merged 3 commits into from
Oct 4, 2020

Conversation

senden9
Copy link
Contributor

@senden9 senden9 commented Oct 3, 2020

Fixes #64.
Warn if a advisory should be ignored that does not exist at all.

Example:

➜  test2 git:(master) ✗ ~/git/cargo-deny/target/debug/cargo-deny check advisories
warning: this advisory is not in any RustSec database
   ┌─ /tmp/test2/deny.toml:49:5
   │
49 │     "RUSTSEC-0000-0000",
   │     ^^^^^^^^^^^^^^^^^^^ unknown advisory

warning: advisory was not encountered
   ┌─ /tmp/test2/deny.toml:48:5
   │
48 │     "RUSTSEC-2020-0036",
   │     ^^^^^^^^^^^^^^^^^^^ no crate matched advisory criteria

advisories ok

Copy link
Member

@Jake-Shadle Jake-Shadle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

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.

Add "unknown advisory" detection
2 participants