bearer: add version test

This commit is contained in:
figsoda 2023-05-29 14:07:30 -04:00
parent 6ed04dd916
commit 713371eed7

View file

@ -1,6 +1,8 @@
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, bearer
}:
buildGoModule rec {
@ -26,6 +28,13 @@ buildGoModule rec {
"-X=github.com/bearer/bearer/cmd/bearer/build.Version=${version}"
];
passthru.tests = {
version = testers.testVersion {
package = bearer;
command = "bearer version";
};
};
meta = with lib; {
description = "Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks";
homepage = "https://github.com/bearer/bearer";