Merge pull request #151169 from fabaff/log4j-sniffer

log4j-sniffer: init at 0.4.0
This commit is contained in:
Fabian Affolter
2021-12-18 22:35:19 +01:00
committed by GitHub
2 changed files with 38 additions and 0 deletions
@@ -0,0 +1,36 @@
{ lib
, buildGoModule
, fetchFromGitHub
, git
}:
buildGoModule rec {
pname = "log4j-sniffer";
version = "0.4.0";
src = fetchFromGitHub {
owner = "palantir";
repo = pname;
rev = "v${version}";
sha256 = "sha256-o2uFO+y2Bni3YtxJDyJ4w3WvKX7lUBFBe7GPBI7OjIg=";
};
vendorSha256 = null;
checkInputs = [
git
];
preCheck = ''
export HOME=$(mktemp -d);
cd $HOME
git init
'';
meta = with lib; {
description = "Tool that scans archives to check for vulnerable log4j versions";
homepage = "https://github.com/palantir/log4j-sniffer";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}
+2
View File
@@ -7483,6 +7483,8 @@ with pkgs;
log4j-scan = callPackage ../tools/security/log4j-scan { };
log4j-sniffer = callPackage ../tools/security/log4j-sniffer { };
log4j-vuln-scanner = callPackage ../tools/security/log4j-vuln-scanner { };
log4jcheck = callPackage ../tools/security/log4jcheck { };