e3d54e3ed1
Diff: https://github.com/trufflesecurity/trufflehog/compare/refs/tags/v3.45.3...v3.46.3 Changelog: https://github.com/trufflesecurity/trufflehog/releases/tag/v3.46.3
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
, testers
|
|
, trufflehog
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "trufflehog";
|
|
version = "3.46.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trufflesecurity";
|
|
repo = "trufflehog";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-IdLNDJYg86dTj+E2w7+sXmNf/MY7eqW9NMAmuhrzm10=";
|
|
};
|
|
|
|
vendorHash = "sha256-ecEms2Zf4EckP2OLoL41S1ZTTnGJhpdMDhknq/mO7qI=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion=${version}"
|
|
];
|
|
|
|
# Test cases run git clone and require network access
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
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";
|
|
changelog = "https://github.com/trufflesecurity/trufflehog/releases/tag/v${version}";
|
|
license = with licenses; [ agpl3Only ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|