homebrew-core/Formula/talisman.rb

27 lines
985 B
Ruby

class Talisman < Formula
desc "Tool to detect and prevent secrets from getting checked in"
homepage "https://thoughtworks.github.io/talisman/"
url "https://github.com/thoughtworks/talisman/archive/v1.10.0.tar.gz"
sha256 "b9640e84044e827f1d9f1c458977150b04bc6ccd96d78e8f5148e0ba7ddafb6b"
license "MIT"
bottle do
cellar :any_skip_relocation
sha256 "f5a8ea0a5a329508e1097c444fb30b048c21a718924fc74058fd272d2d041101" => :big_sur
sha256 "a6682d9be9f24e3e7251a5006643bd518d485d1f32d1b2a61d52efeea08317e7" => :catalina
sha256 "468ada5252b7c8383ef357f3cd2d39d43c8870d55638a4bcdf022c0b6b6715df" => :mojave
sha256 "ed7afe4da9e5d164521b978dc6c680b8026e54fd6a21c0db27e5474d4e89a72e" => :high_sierra
end
depends_on "go" => :build
def install
system "go", "build", *std_go_args, "-ldflags", "-X main.Version=#{version}"
end
test do
system "git", "init", "."
assert_match "talisman scan report", shell_output(bin/"talisman --scan")
end
end