From 487125dc4c4eaa7fc05781a240ebfe56870444ac Mon Sep 17 00:00:00 2001 From: Jeremy Daer Date: Wed, 19 Aug 2026 09:27:49 -0700 Subject: [PATCH] Bump brakeman to 8.0.6 and stop --ensure-latest reddening CI (#249) * Bump brakeman to 8.0.6 Brakeman 8.0.6 shipped 2026-08-12: corrected Rails 8.0 EOL date, added Rails 8.1 and Ruby 4.0 EOL dates, and fixed command-injection false positives. brakeman's only runtime dependency is racc and its required ruby is >= 3.2.0, both unchanged since 7.1.2, so this is a version bump with no other movement in the graph. * Give brakeman's --ensure-latest a 15-day grace period Bare --ensure-latest exits 5 the moment a newer brakeman exists, so a release turns this build red before anyone has a chance to react. That is what happened on 2026-08-12 when 8.0.6 shipped. The flag takes an optional minimum age in days and only complains once the latest release is at least that old. 15 is the maximum it accepts; brakeman rejects anything outside 1-15. * Exempt brakeman from the dependabot cooldown The grace period on --ensure-latest is only headroom if the bump lands inside it. A weekly schedule plus a 7-day cooldown can take 14 days to so much as open the PR, leaving a single day to merge it. Excluding brakeman from the cooldown caps the delay at the weekly schedule, comfortably inside the 15 days. --- .github/dependabot.yml | 2 ++ Gemfile.lock | 2 +- bin/brakeman | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 60bfd59..327f5f6 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -20,6 +20,8 @@ updates: semver-minor-days: 3 semver-patch-days: 2 default-days: 7 + exclude: + - "brakeman" - package-ecosystem: docker directory: "/" diff --git a/Gemfile.lock b/Gemfile.lock index f1d94e3..cb161b0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -137,7 +137,7 @@ GEM bcrypt (3.1.22) benchmark (0.5.0) bigdecimal (3.3.1) - brakeman (8.0.5) + brakeman (8.0.6) racc builder (3.3.0) bundler-audit (0.9.3) diff --git a/bin/brakeman b/bin/brakeman index ace1c9b..aba19b2 100755 --- a/bin/brakeman +++ b/bin/brakeman @@ -2,6 +2,6 @@ require "rubygems" require "bundler/setup" -ARGV.unshift("--ensure-latest") +ARGV.unshift("--ensure-latest", "15") load Gem.bin_path("brakeman", "brakeman")