-
Notifications
You must be signed in to change notification settings - Fork 0
/
trufflehog.rb
51 lines (44 loc) · 1.56 KB
/
trufflehog.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Trufflehog < Formula
desc "Find credentials all over the place"
homepage "https://github.com/trufflesecurity/trufflehog"
version "3.88.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/trufflesecurity/trufflehog/releases/download/v3.88.0/trufflehog_3.88.0_darwin_amd64.tar.gz"
sha256 "79e8c67a51149f5aba2daa605e5c1a8cab1a08b0927076bf0896144e31c7817d"
def install
bin.install "trufflehog"
end
end
if Hardware::CPU.arm?
url "https://github.com/trufflesecurity/trufflehog/releases/download/v3.88.0/trufflehog_3.88.0_darwin_arm64.tar.gz"
sha256 "d88005ef88c0b389194e5ad71c84f7bfadd6672b3ef1d3891c13101de99fc969"
def install
bin.install "trufflehog"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/trufflesecurity/trufflehog/releases/download/v3.88.0/trufflehog_3.88.0_linux_amd64.tar.gz"
sha256 "92764b90a07a947b5f0a4b8c06c37e9485dcdd7c4f456b35e3a5ee48e9b66efa"
def install
bin.install "trufflehog"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/trufflesecurity/trufflehog/releases/download/v3.88.0/trufflehog_3.88.0_linux_arm64.tar.gz"
sha256 "944d55bad08fe9abee5c0001a7165ed51d795d1e9d0b0fa1aea9d8b1fecddc1f"
def install
bin.install "trufflehog"
end
end
end
end
end