From nobody Sat Mar 09 05:36:48 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TsBcK2DBNz5Cvp0; Sat, 9 Mar 2024 05:36:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TsBcJ6YJgz4trm; Sat, 9 Mar 2024 05:36:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709962608; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dF09Fu/yEf4EjWQOLvoFmmGbq5OEdR2lI9ZIYi+2P0E=; b=tTBqYZ+EgLaWwLcSH+XvMM2+eB2V/4vevCpkkdwZdx92SkSSFk6hm+popSRO3bo811ceed dtRYdAN5JKmRrwmoQENgyDnJo5OrdXXHrJeqVaI1jKJLQF6N/e41NnkGyw0sfOSMVDGQdO SzK7XylFEN9IBDa+w46nkKofbNlAOzcBjJgGYrI6fPN3hQXKSuCa76tsablpJXLhY6fBPi 5reFEDEjRaqcTuIfoiKKVrhMBJJIyAu7t9hBlRwEIsRJhMOOZz9bOLcYTAHkV3SQ3k4hZk yoS84lRVrsM2Qd63HNlcVBEJ9bpqxr2VvF4zSYAHlIcdlIED4WBhF21X8QcvLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709962608; a=rsa-sha256; cv=none; b=izfJge3sPpHzjHvVFmokveEwHcBxDQJYWQbciogevmy0768e/PAowNdmyVCCo1d/yuFMZ2 9PRevpCe7VKUOtae5noxzqkGBd6pQjd8Xxu+ZmG7MwmDbjfQdTXDJsDllC9+2stGu4UJkM MGai3QxR7bZJEzINsYE7SDwj4rzOSbQJmKfX7tCu5L7SEY8MePt5ja6zzdU63M8FvfSyeN TZgVeU30pKCpNuPZPUR31RwaMV+Pvpb5cq4fmS5JvLsz81tYf8hRIbQ+Cf5v4WdnWgGE4H AH42UUQXjglEf3BgWsl+ph2rXBGYhbVukgU9GQ63gaxsDIfiKfgMEnCSbdD5iQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709962608; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dF09Fu/yEf4EjWQOLvoFmmGbq5OEdR2lI9ZIYi+2P0E=; b=ilSf/GCjoLVS3+yVu35cpghUD4VTp/q7LtKrNSLrNwQJ2G/dwfgZUZcolW484iJk171fCi R0vMGuBNY4Fs0vo+LiBBrL7zzuHfqeadYKMkLFNFrhwLR1Za72TTqSXOcTKq162c4mbNgk V2MBBJKJe1pD8S5HFG1+4KyIEw9z7z4wJoFObQWKNTDzC0n8oQS4GnoAqXQ/L5onhTTYyY QXmNzY54T7Mw9aQArCC4lYHyp+LrnA7oJoTSpCFIHAQZ5CGFs7cULvZA1AfyFgVD+UN/Bo O0OzMVrt9CaDv0U7U8xAStNlZkru35rmJwiLCGl/wv0825Z659k6psOIvAzKZA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TsBcJ68yQzq4C; Sat, 9 Mar 2024 05:36:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4295amqb023006; Sat, 9 Mar 2024 05:36:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4295amJi023003; Sat, 9 Mar 2024 05:36:48 GMT (envelope-from git) Date: Sat, 9 Mar 2024 05:36:48 GMT Message-Id: <202403090536.4295amJi023003@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthias Fechner Subject: git: f08836ef7bde - main - ecurity/trivy: add a new security scanner List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mfechner X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f08836ef7bded933702cdd8119ce12f68fd46883 Auto-Submitted: auto-generated The branch main has been updated by mfechner: URL: https://cgit.FreeBSD.org/ports/commit/?id=f08836ef7bded933702cdd8119ce12f68fd46883 commit f08836ef7bded933702cdd8119ce12f68fd46883 Author: Matthias Fechner AuthorDate: 2024-03-09 05:35:43 +0000 Commit: Matthias Fechner CommitDate: 2024-03-09 05:36:41 +0000 ecurity/trivy: add a new security scanner Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more --- security/Makefile | 1 + security/trivy/Makefile | 26 ++++++++++++++++++++++++++ security/trivy/distinfo | 5 +++++ security/trivy/pkg-descr | 2 ++ 4 files changed, 34 insertions(+) diff --git a/security/Makefile b/security/Makefile index c56b39cc9fd2..62633883efa3 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1328,6 +1328,7 @@ SUBDIR += transcrypt SUBDIR += trezord SUBDIR += tripwire + SUBDIR += trivy SUBDIR += trousers SUBDIR += trufflehog SUBDIR += tthsum diff --git a/security/trivy/Makefile b/security/trivy/Makefile new file mode 100644 index 000000000000..44282f9226e1 --- /dev/null +++ b/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 diff --git a/security/trivy/distinfo b/security/trivy/distinfo new file mode 100644 index 000000000000..61d83462dc59 --- /dev/null +++ b/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 diff --git a/security/trivy/pkg-descr b/security/trivy/pkg-descr new file mode 100644 index 000000000000..bc47a5f20e4f --- /dev/null +++ b/security/trivy/pkg-descr @@ -0,0 +1,2 @@ +Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, +code repositories, clouds and more