bearer: add version test
This commit is contained in:
parent
6ed04dd916
commit
713371eed7
1 changed files with 9 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue