-
Notifications
You must be signed in to change notification settings - Fork 7
/
trivy.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.58.1"
on_macos do
on_intel do
url "https://github.com/aquasecurity/trivy/releases/download/v0.58.1/trivy_0.58.1_macOS-64bit.tar.gz"
sha256 "4f939f363d23eeb4d6181b2c38c518db38d94987565a8fa5ec9e037972e4b811"
def install
bin.install "trivy"
end
end
on_arm do
url "https://github.com/aquasecurity/trivy/releases/download/v0.58.1/trivy_0.58.1_macOS-ARM64.tar.gz"
sha256 "499a64a911a1ac80fcc26d619cdc1bdb05528d8b1bd0490f01a8324aa6ec6e13"
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.58.1/trivy_0.58.1_Linux-64bit.tar.gz"
sha256 "21a5eea31d072b34a6284855249f4074ff43c618d398f9ec328bef4ff7c2fa0d"
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.58.1/trivy_0.58.1_Linux-ARM64.tar.gz"
sha256 "29ec9c3af77a00234860f4a9c48e2dd7691e939924da5d76c259e46c614e2545"
def install
bin.install "trivy"
end
end
end
end
test do
system "#{bin}/trivy", "--version"
end
end