Merge pull request #121244 from 06kellyjac/trivy

trivy: 0.16.0 -> 0.17.1
This commit is contained in:
Sandro
2021-04-30 10:18:57 +02:00
committed by GitHub
+9 -12
View File
@@ -2,27 +2,26 @@
buildGoModule rec { buildGoModule rec {
pname = "trivy"; pname = "trivy";
version = "0.16.0"; version = "0.17.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "aquasecurity"; owner = "aquasecurity";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-E/tPjVc+XLDCFYzloAipwWjB4I86kAe/6NVoJSCrY2M="; sha256 = "sha256-5TOKYxH1Tnsd1t2yoUflFUSW0QGS9l5+0JtS2Fo6vL0=";
}; };
vendorSha256 = "sha256-YoQF0Eug747LhsR3V0IplwXgm0ndDqK1pUVjguOhjOU="; vendorSha256 = "sha256-zVe1bTTLOHxfdbb6VcztOCWMbCbzT6igNpvPytktMWs=";
subPackages = [ "cmd/trivy" ]; excludedPackages = "misc";
buildFlagsArray = [ preBuild = ''
"-ldflags=" buildFlagsArray+=("-ldflags" "-s -w -X main.version=v${version}")
"-s" '';
"-w"
"-X main.version=v${version}"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/aquasecurity/trivy";
changelog = "https://github.com/aquasecurity/trivy/releases/tag/v${version}";
description = "A simple and comprehensive vulnerability scanner for containers, suitable for CI"; description = "A simple and comprehensive vulnerability scanner for containers, suitable for CI";
longDescription = '' longDescription = ''
Trivy is a simple and comprehensive vulnerability scanner for containers Trivy is a simple and comprehensive vulnerability scanner for containers
@@ -31,8 +30,6 @@ buildGoModule rec {
vulnerabilities of OS packages (Alpine, RHEL, CentOS, etc.) and vulnerabilities of OS packages (Alpine, RHEL, CentOS, etc.) and
application dependencies (Bundler, Composer, npm, yarn, etc.). application dependencies (Bundler, Composer, npm, yarn, etc.).
''; '';
homepage = src.meta.homepage;
changelog = "${src.meta.homepage}/releases/tag/v${version}";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ jk ]; maintainers = with maintainers; [ jk ];
}; };