Skip to content

Commit

Permalink
Allow :ignore to contain both CVE IDs and OSVDB IDs (issue #94).
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jul 23, 2015
1 parent 610acd5 commit 4e32fca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/bundler/audit/scanner.rb
Expand Up @@ -145,7 +145,8 @@ def scan_specs(options={})

@lockfile.specs.each do |gem|
@database.check_gem(gem) do |advisory|
unless ignore.include?(advisory.id)
unless (ignore.include?(advisory.cve_id) ||
ignore.include?(advisory.osvdb_id))
yield UnpatchedGem.new(gem,advisory)
end
end
Expand Down

0 comments on commit 4e32fca

Please sign in to comment.