sonatype-nexus-community / jake

Check your Python environments for vulnerable Open Source packages with OSS Index or Sonatype Nexus Lifecycle.
https://jake.readthedocs.io/
Apache License 2.0
114 stars 24 forks source link

FIX: Enable non-zero exit code + correct logic in determining Nexus IQ policy warnings #69

Closed madpah closed 3 years ago

madpah commented 3 years ago

Signed-off-by: Paul Horton phorton@sonatype.com

This PR primarily contains an update to allow jake to exit with code 1 when either:\

This new functionality can also be overridden by adding the -w or --warn-only flag.

In addition an un-reported bug with the handling of results from Nexus IQ was noted and squashed (bad logic).

It relates to the following issue #s:

cc @bhamail / @DarthHater