-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
/
Copy pathtalisman.rb
34 lines (29 loc) · 1.47 KB
/
talisman.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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/refs/tags/v1.33.1.tar.gz"
sha256 "97a5c244a6ba2d91e3b1712de380572371323bdcb2087a702f961a0ff2eb0b5b"
license "MIT"
version_scheme 1
head "https://github.com/thoughtworks/talisman.git", branch: "master"
livecheck do
url :stable
strategy :github_latest
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "546b00903de07eb94c719ce11d4a5e14120e49d3a2dd1c99adbc30578b03d63c"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "546b00903de07eb94c719ce11d4a5e14120e49d3a2dd1c99adbc30578b03d63c"
sha256 cellar: :any_skip_relocation, arm64_ventura: "546b00903de07eb94c719ce11d4a5e14120e49d3a2dd1c99adbc30578b03d63c"
sha256 cellar: :any_skip_relocation, sonoma: "ee085dac06950cc3c8baca47d15c176e1200968317d7499a7b2d39278f3dba9d"
sha256 cellar: :any_skip_relocation, ventura: "ee085dac06950cc3c8baca47d15c176e1200968317d7499a7b2d39278f3dba9d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "227d60f256228145098aa849fceec1c44cd3427f4a0b5d54ce0f94de8a2d4b1b"
end
depends_on "go" => :build
def install
system "go", "build", *std_go_args(ldflags: "-s -w -X main.Version=#{version}"), "./cmd"
end
test do
system "git", "init", "."
assert_match "talisman scan report", shell_output(bin/"talisman --scan")
end
end