Patch-level verification for Bundler
Patch-level verification for bundler.
Gemfile.lock.http:// and git://).Audit a project's Gemfile.lock:
…Update the ruby-advisory-db that bundle audit uses:
…Update the ruby-advisory-db and check Gemfile.lock (useful for CI runs):
$ bundle-audit check --updateChecking the Gemfile.lock without updating the ruby-advisory-db:
$ bundle-audit check --no-updateIgnore specific advisories:
$ bundle-audit check --ignore OSVDB-108664Checking a custom Gemfile.lock file:
$ bundle-audit check --gemfile-lock Gemfile.custom.lockOutput the audit's results in JSON:
$ bundle-audit check --format jsonOutput the audit's results in JSON, to a file:
$ bundle-audit check --format json --output bundle-audit.jsonBundler-audit provides rake tasks for checking the code and for updating
its vulnerability database.
Simply add the following code to the Rakefile:
require 'bundler/audit/task'
Bundler::Audit::Task.newThe following rake tasks will then become available:
$ rake -T
rake bundle:audit
rake bundle:audit:updatebundler-audit also supports a per-project configuration file:
.bundler-audit.yml:
---
ignore:
- CVE-YYYY-XXXX
- ...ignore: [Array<String>] - A list of advisory IDs to ignore.You can provide a path to a config file using the --config flag:
$ bundle-audit check --config bundler-audit.custom.yaml$ [sudo] gem install bundler-audit$ sudo apt install git$ sudo dnf install git$ apk add git$ brew install gitgit clone YOUR_FORK_URIcd bundler-audit/bundle installbundle exec rake specgit checkout -b YOUR_FEATUREbundle exec rake specgit commit -agit push origin YOUR_FEATURETo safeguard project security and respect our maintainers' volunteer time, a human-in-the-loop is strictly required for all submissions. While AI tools are permitted as assistants, contributors must personally review, understand, and take full responsibility for their work. Any contributions that appear to be unreviewed machine output will be closed immediately, and repeat offenders will be banned from the project and reported.
Copyright (c) 2013-2026 Hal Brodigan (postmodern.mod3 at gmail.com)
bundler-audit is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
bundler-audit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with bundler-audit. If not, see https://www.gnu.org/licenses/.
No open issues yet, or sync has not completed.