-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsyft.rb
More file actions
46 lines (41 loc) · 1.53 KB
/
syft.rb
File metadata and controls
46 lines (41 loc) · 1.53 KB
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
# 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.42.4"
license "Apache License 2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/anchore/syft/releases/download/v1.42.4/syft_1.42.4_darwin_amd64.tar.gz"
sha256 "4a14affad1b90f0bfa38fdb784279f01598b6099df40686391d814620e9de226"
define_method(:install) do
bin.install "syft"
end
end
if Hardware::CPU.arm?
url "https://github.com/anchore/syft/releases/download/v1.42.4/syft_1.42.4_darwin_arm64.tar.gz"
sha256 "0797b64cf8841c904682e6007a695f9cd3e72103f064dd286723c0a56a2273e2"
define_method(:install) do
bin.install "syft"
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/anchore/syft/releases/download/v1.42.4/syft_1.42.4_linux_amd64.tar.gz"
sha256 "590650c2743b83f327d1bf9bec64f6f83b7fec504187bb84f500c862bf8f2a0f"
define_method(:install) do
bin.install "syft"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/anchore/syft/releases/download/v1.42.4/syft_1.42.4_linux_arm64.tar.gz"
sha256 "5029bad1ed372649527b1e443cbceef7f5d6ae1cfe52c16e721559f94267128b"
define_method(:install) do
bin.install "syft"
end
end
end
end