From 88045d404c4f121b367ee5e9423e64974a57d6e9 Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 25 Apr 2023 11:05:29 -0400 Subject: [PATCH] trufflehog: add version test --- pkgs/tools/security/trufflehog/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/tools/security/trufflehog/default.nix b/pkgs/tools/security/trufflehog/default.nix index fc678bda23a0..1fdfb7e8d45f 100644 --- a/pkgs/tools/security/trufflehog/default.nix +++ b/pkgs/tools/security/trufflehog/default.nix @@ -1,6 +1,8 @@ { lib , fetchFromGitHub , buildGoModule +, testers +, trufflehog }: buildGoModule rec { @@ -29,6 +31,12 @@ buildGoModule rec { rm $out/bin/{generate,snifftest} ''; + passthru = { + tests.version = testers.testVersion { + package = trufflehog; + }; + }; + meta = with lib; { description = "Find credentials all over the place"; homepage = "https://github.com/trufflesecurity/trufflehog";