Skip to content

Conversation

@MC-Squared
Copy link

Issue

I would like to run bundler-audit as part of our CI builds that test every branch/PR, however I do not want vulnerabilities to cause the build to be considered a failure.
Obviously, this can be achieved in bash but Brakeman, which we also run, provides a --no-exit-on-warn flag for this purpose.

Fix

Added a --no-exit-on-warn flag that causes the CLI to exit with 0, even if vulnerabilities are found.
Error cases, such as update failing, should be unaffected by this change.

@zabolotnov87
Copy link

I think it would be more useful when 0 status will be returned in case when no solutions presents yet

@ingemar
Copy link

ingemar commented Feb 28, 2019

@MC-Squared You forgot to add specs for your new feature.

@postmodern
Copy link
Member

Was going to suggest just appending || true to the command to suppress any exit error codes.

@postmodern postmodern added this to the 0.9.0 milestone Dec 17, 2020
@postmodern postmodern removed this from the 0.9.0 milestone Aug 31, 2021
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.

4 participants