Skip to content

Add "unknown advisory" detection#275

Merged
mergify[bot] merged 3 commits intoEmbarkStudios:mainfrom
senden9:feature/warn_unknown_advisory
Oct 4, 2020
Merged

Add "unknown advisory" detection#275
mergify[bot] merged 3 commits intoEmbarkStudios:mainfrom
senden9:feature/warn_unknown_advisory

Conversation

@senden9
Copy link
Copy Markdown
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
Copy Markdown
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