mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
kics: add version test
This commit is contained in:
parent
9bbb7fb635
commit
d4be94cb82
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue