-
Notifications
You must be signed in to change notification settings - Fork 0
/
syft.rb
52 lines (45 loc) · 1.48 KB
/
syft.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 Syft < Formula
desc "A tool that generates a Software Bill Of Materials (SBOM) from container images and filesystems"
homepage "https://github.com/anchore/syft"
version "1.18.1"
license "Apache License 2.0"
on_macos do
on_intel do
url "https://github.com/anchore/syft/releases/download/v1.18.1/syft_1.18.1_darwin_amd64.tar.gz"
sha256 "223f5a97653e0bb0a96580a04328d41d515ee742bfbdd917f0583dc43e66f423"
def install
bin.install "syft"
end
end
on_arm do
url "https://github.com/anchore/syft/releases/download/v1.18.1/syft_1.18.1_darwin_arm64.tar.gz"
sha256 "bc5ad238a7cc60f19459b6f358079847bff5f8e520c8239706730f3fc5c5edd5"
def install
bin.install "syft"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/anchore/syft/releases/download/v1.18.1/syft_1.18.1_linux_amd64.tar.gz"
sha256 "066c251652221e4d44fcc4d115ce3df33a91769da38c830a8533199db2f65aab"
def install
bin.install "syft"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/anchore/syft/releases/download/v1.18.1/syft_1.18.1_linux_arm64.tar.gz"
sha256 "cd228306e5cb0654baecb454f76611606b84899d27fa9ceb7da4df46b94fe84e"
def install
bin.install "syft"
end
end
end
end
end