-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhelmscan.rb
30 lines (26 loc) · 1 KB
/
helmscan.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
class Helmscan < Formula
desc "A tool for scanning Helm charts for vulnerabilities"
homepage "https://github.com/cliffcolvin/helmscan"
version "0.1.0"
# Dependencies
depends_on "helm"
depends_on "aquasecurity/trivy/trivy"
depends_on "yq"
depends_on "jq"
if OS.mac? && Hardware::CPU.arm?
url "https://github.com/cliffcolvin/helmscan/releases/download/v0.1.0/helmscan_Darwin_arm64.tar.gz"
sha256 "..." # Replace with actual SHA256 of your ARM64 binary
elsif OS.mac? && Hardware::CPU.intel?
url "https://github.com/cliffcolvin/helmscan/releases/download/v0.1.0/helmscan_Darwin_x86_64.tar.gz"
sha256 "..." # Replace with actual SHA256 of your AMD64 binary
elsif OS.linux? && Hardware::CPU.intel?
url "https://github.com/cliffcolvin/helmscan/releases/download/v0.1.0/helmscan_Linux_x86_64.tar.gz"
sha256 "..." # Replace with actual SHA256 of your Linux AMD64 binary
end
def install
bin.install "helmscan"
end
test do
system "#{bin}/helmscan", "--version"
end
end