-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtrivy.rb
55 lines (47 loc) · 1.57 KB
/
trivy.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
52
53
54
55
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Trivy < Formula
desc "Scanner for vulnerabilities in container images, file systems, and Git repositories, as well as for configuration issues"
homepage "https://github.com/aquasecurity/trivy"
version "0.59.1"
on_macos do
on_intel do
url "https://github.com/aquasecurity/trivy/releases/download/v0.59.1/trivy_0.59.1_macOS-64bit.tar.gz"
sha256 "73db39d6ed2ce492300ff245e4d347b317770a5d839d6aeaecc75f8f93de0680"
def install
bin.install "trivy"
end
end
on_arm do
url "https://github.com/aquasecurity/trivy/releases/download/v0.59.1/trivy_0.59.1_macOS-ARM64.tar.gz"
sha256 "abe9cd4e8cc86304d18956151aff95d9086a234be89610159feab6365a10d995"
def install
bin.install "trivy"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/aquasecurity/trivy/releases/download/v0.59.1/trivy_0.59.1_Linux-64bit.tar.gz"
sha256 "e05beab945692d434b1ab5d062be6d2b4ca14bec7975bd734ea2f2de92e6f862"
def install
bin.install "trivy"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/aquasecurity/trivy/releases/download/v0.59.1/trivy_0.59.1_Linux-ARM64.tar.gz"
sha256 "479d06556e5af08b350a6b0844eeeee8fd93c75f9e1baed467d8cb251cbc1c83"
def install
bin.install "trivy"
end
end
end
end
test do
system "#{bin}/trivy", "--version"
end
end