-
Notifications
You must be signed in to change notification settings - Fork 2
/
grype.rb
52 lines (45 loc) · 1.46 KB
/
grype.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Grype < Formula
desc "A vulnerability scanner for container images and filesystems"
homepage "https://github.com/anchore/grype"
version "0.86.1"
license "Apache License 2.0"
on_macos do
on_intel do
url "https://github.com/anchore/grype/releases/download/v0.86.1/grype_0.86.1_darwin_amd64.tar.gz"
sha256 "7dcbf1301e1c8bcadcfd42fc3164545c1f7c8b84374edb7ea0f7c160bff10775"
def install
bin.install "grype"
end
end
on_arm do
url "https://github.com/anchore/grype/releases/download/v0.86.1/grype_0.86.1_darwin_arm64.tar.gz"
sha256 "c4e124318e7cb3df62f165f93351cc1a65ee4d4916900f6ec89bad694e5311d9"
def install
bin.install "grype"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/anchore/grype/releases/download/v0.86.1/grype_0.86.1_linux_amd64.tar.gz"
sha256 "2d1533dae213a27b741e0cb31b2cd354159a283325475512ae90c1c2412f4098"
def install
bin.install "grype"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/anchore/grype/releases/download/v0.86.1/grype_0.86.1_linux_arm64.tar.gz"
sha256 "f65d7a8bb4c08a3b2dad02b35e6f5729dc8a317a51955052ca2a9ce57d430e54"
def install
bin.install "grype"
end
end
end
end
end