Add Bundler Audit for Local CI

This commit is contained in:
David Heinemeier Hansson
2025-04-05 17:20:51 +02:00
parent 5316a6b821
commit 537cb7680e
3 changed files with 12 additions and 0 deletions
+1
View File
@@ -35,6 +35,7 @@ gem "rails_structured_logging", bc: "rails-structured-logging"
group :development, :test do
gem "debug"
gem "bundler-audit", require: false
gem "brakeman", require: false
gem "rubocop-rails-omakase", require: false
end
+4
View File
@@ -131,6 +131,9 @@ GEM
brakeman (7.0.0)
racc
builder (3.3.0)
bundler-audit (0.9.2)
bundler (>= 1.2.0, < 3)
thor (~> 1.0)
capybara (3.40.0)
addressable
matrix
@@ -418,6 +421,7 @@ DEPENDENCIES
bcrypt (~> 3.1.7)
bootsnap
brakeman
bundler-audit
capybara
debug
geared_pagination (~> 1.2)
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env ruby
require_relative "../config/boot"
require "bundler/audit/cli"
ARGV.concat %w[ --config config/bundler-audit.yml ] if ARGV.empty? || ARGV.include?("check")
Bundler::Audit::CLI.start