/
grype.rb
48 lines (41 loc) · 1.43 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
# 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.77.4"
license "Apache License 2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/anchore/grype/releases/download/v0.77.4/grype_0.77.4_darwin_amd64.tar.gz"
sha256 "6c98aae34c83f6c4d04cf7ec8489c3117d71579270353e3ac8bef4c198760e68"
def install
bin.install "grype"
end
end
if Hardware::CPU.arm?
url "https://github.com/anchore/grype/releases/download/v0.77.4/grype_0.77.4_darwin_arm64.tar.gz"
sha256 "813abf19e315caa7f41dc4b402fd96f5968a7bb2e36c15e866bf9f17c25b3e59"
def install
bin.install "grype"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/anchore/grype/releases/download/v0.77.4/grype_0.77.4_linux_amd64.tar.gz"
sha256 "95afaf6b8f3e805a693a8643d0dd3013c871f21f2614f9ef8ff0b82f245cd129"
def install
bin.install "grype"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/anchore/grype/releases/download/v0.77.4/grype_0.77.4_linux_arm64.tar.gz"
sha256 "629e151c5960c32be7784289fa9b0cbe9970f99f4759cc834f82af086aecca0f"
def install
bin.install "grype"
end
end
end
end