Merge pull request #200468 from patryk4815/patch-1

kics: add version test
This commit is contained in:
Bobby Rong 2022-11-10 17:33:21 +08:00 committed by GitHub
commit 5a9b4e6cfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,10 @@
{ stdenv, buildGoModule, fetchFromGitHub, lib }:
{ stdenv
, buildGoModule
, fetchFromGitHub
, lib
, testers
, kics
}:
buildGoModule rec {
pname = "kics";
@ -25,6 +31,11 @@ buildGoModule rec {
"-X github.com/Checkmarx/kics/internal/constants.Version=${version}"
];
passthru.tests.version = testers.testVersion {
package = kics;
command = "kics version";
};
meta = with lib; {
description = ''
Find security vulnerabilities, compliance issues, and infrastructure misconfigurations early in the development