Skip to content

Commit

Permalink
ecurity/trivy: add a new security scanner
Browse files Browse the repository at this point in the history
Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes,
code repositories, clouds and more
  • Loading branch information
mfechner committed Mar 9, 2024
1 parent 4ec4de0 commit f08836e
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions security/Makefile
Expand Up @@ -1328,6 +1328,7 @@
SUBDIR += transcrypt
SUBDIR += trezord
SUBDIR += tripwire
SUBDIR += trivy
SUBDIR += trousers
SUBDIR += trufflehog
SUBDIR += tthsum
Expand Down
26 changes: 26 additions & 0 deletions security/trivy/Makefile
@@ -0,0 +1,26 @@
PORTNAME= trivy
DISTVERSION= 0.49.1
DISTVERSIONPREFIX= v
CATEGORIES= security

MAINTAINER= mfechner@FreeBSD.org
COMMENT= Security scanner written in go
WWW= https://github.com/aquasecurity/trivy

LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE

USES= go:modules,1.21

GO_MODULE= github.com/aquasecurity/trivy
GO_TARGET= ./cmd/trivy
GO_BUILDFLAGS= -ldflags=" \
-extldflags '-static' \
-X github.com/aquasecurity/trivy/pkg/version.ver=${DISTVERSION} \
-s -w"

PLIST_FILES= bin/${PORTNAME}



.include <bsd.port.mk>
5 changes: 5 additions & 0 deletions security/trivy/distinfo
@@ -0,0 +1,5 @@
TIMESTAMP = 1709899091
SHA256 (go/security_trivy/trivy-v0.49.1/v0.49.1.mod) = 49e23b72ebeef255b19969704ddf58c118888efad7058ae732cb5701b15b1145
SIZE (go/security_trivy/trivy-v0.49.1/v0.49.1.mod) = 22827
SHA256 (go/security_trivy/trivy-v0.49.1/v0.49.1.zip) = 71fd4e3d5abf9e7fdcff4b844cdfdd28cac91a78d36c22de1f581e4bafbe567f
SIZE (go/security_trivy/trivy-v0.49.1/v0.49.1.zip) = 40379854
2 changes: 2 additions & 0 deletions security/trivy/pkg-descr
@@ -0,0 +1,2 @@
Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes,
code repositories, clouds and more

0 comments on commit f08836e

Please sign in to comment.