rubysec / bundler-audit

Patch-level verification for Bundler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`Bundler::Audit::Task` does not fail when vulnerabilities are found

postmodern opened this issue · comments

Description

The Bundler::Audit::Task does not fail if vulnerabilities are found. Add exit $?.exitstatus || 1 to mimic how the rspec rake task works.

Steps To Reproduce

Steps to reproduce the bug:

  1. bundle exec rake bundler:audit
  2. echo $?

Expected Behavior

Exits with 1 when vulnerabilities are found.

Actual Behavior

Always exits with 0.

Fixed build in 0b2a28c.

Also tested locally with a known vulnerable bundle. Now exits with status code 1.

bundler-audit 0.9.1 has been released. See the ChangeLog for a short summary of the bug.