-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrufflehog.rb
More file actions
45 lines (40 loc) · 1.57 KB
/
trufflehog.rb
File metadata and controls
45 lines (40 loc) · 1.57 KB
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
# 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.94.3"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/trufflesecurity/trufflehog/releases/download/v3.94.3/trufflehog_3.94.3_darwin_amd64.tar.gz"
sha256 "afea2e94a1bb274bdad1758aadd6f033f875dd4c1c06cbcdc47076ed91cc62e5"
define_method(:install) do
bin.install "trufflehog"
end
end
if Hardware::CPU.arm?
url "https://github.com/trufflesecurity/trufflehog/releases/download/v3.94.3/trufflehog_3.94.3_darwin_arm64.tar.gz"
sha256 "f2dca2e62f02027ef3f164068ec2632230764a816a336efe15e0facb70fe8731"
define_method(:install) do
bin.install "trufflehog"
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/trufflesecurity/trufflehog/releases/download/v3.94.3/trufflehog_3.94.3_linux_amd64.tar.gz"
sha256 "7cc45010bfac7258a23731bc3ab4371abdbf20ffc705075066971e5aa8ebda7f"
define_method(:install) do
bin.install "trufflehog"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/trufflesecurity/trufflehog/releases/download/v3.94.3/trufflehog_3.94.3_linux_arm64.tar.gz"
sha256 "57699423c593b63d5baa690ca4105f13b61c80480177160c6fc4b31cbac3af56"
define_method(:install) do
bin.install "trufflehog"
end
end
end
end