Skip to content

Instantly share code, notes, and snippets.

@presidentbeef
Last active February 7, 2026 15:21
Show Gist options
  • Select an option

  • Save presidentbeef/0cba3fae686c8edc20c626a6cf1d21d9 to your computer and use it in GitHub Desktop.

Select an option

Save presidentbeef/0cba3fae686c8edc20c626a6cf1d21d9 to your computer and use it in GitHub Desktop.
Brakeman binstub example to always run the latest
#!/usr/bin/env ruby
# This binstub ensures that you are running the latest version of Brakeman.
require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "brakeman", Gem.latest_version_for("brakeman")
end
load Gem.bin_path("brakeman", "brakeman")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment