sonatype-nexus-community / cargo-pants

Apache License 2.0
28 stars 9 forks source link

Ability to ignore vulns #57

Closed DarthHater closed 3 years ago

DarthHater commented 3 years ago

This is largely a transposition of what we do in auditjs, but I doubt it's right, so opening a PR for feedback!

This pull request makes the following changes:

It relates to the following issue #s:

amy-keibler commented 3 years ago

Uses the json structure from auditjs

Much of the rust ecosystem uses TOML rather than JSON. Are we expecting to have cross-over with auditjs for ignore files? I think we should see if we can support both JSON and TOML if serde will give it to us for free

DarthHater commented 3 years ago

@amy-keibler not so much crossover, but just like, keeping it common amongst the tools. It's different in Nancy, however, so who knows :shrug:

amy-keibler commented 3 years ago

Do they only filter by the UUID or is there a more user-facing way to build up the filter file? (I'm not super familiar with the way we specify vulnerabilities yet, so I added a dbg!() to get the UUID of the one for time in our current project

DarthHater commented 3 years ago

@amy-keibler in nancy we allowed filtering by title, but auditjs we only do uuid (which I suspect is reasonable, as long as we output it, whichhhh I should do in this too).