Commit d4be94cb authored by psondej's avatar psondej
Browse files

kics: add version test

parent 9bbb7fb6
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
{ 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