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 --no-exit-on-warn flag that exits with 0 even when vulnerable #199

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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