git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #110015 from fabaff/gitleaks

gitleaks: init at 7.2.0

commit1ca55e5c3b08be8cedd226421df8424ce63e4a3a authorSandro <sandro.jaeckel@gmail.com> dateTue 19 Jan 2021, 22:14 (6 years ago) parentbb5ab2b84634ff
2 files changed+31
pkgs/tools/security/gitleaks/default.nix+29 pkgs/top-level/all-packages.nix+2
pkgs/tools/security/gitleaks/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ buildGoModule
2+, fetchFromGitHub
3+, lib
4+}:
5+
6+buildGoModule rec {
7+ pname = "gitleaks";
8+ version = "7.2.0";
9+
10+ src = fetchFromGitHub {
11+ owner = "zricethezav";
12+ repo = pname;
13+ rev = "v${version}";
14+ sha256 = "1pdbkjx8h6ijypsxyv34lykymaqf8wnfyjk3ldp49apbx01bl34y";
15+ };
16+
17+ vendorSha256 = "0kk8ci7vprqw4v7cigspshfd13k2wyy4pdkxf11pqc2fz8j07kh9";
18+
19+ meta = with lib; {
20+ description = "Scan git repos (or files) for secrets";
21+ longDescription = ''
22+ Gitleaks is a SAST tool for detecting hardcoded secrets like passwords,
23+ API keys, and tokens in git repos.
24+ '';
25+ homepage = "https://github.com/zricethezav/gitleaks";
26+ license = with licenses; [ mit ];
27+ maintainers = with maintainers; [ fab ];
28+ };
29+}
pkgs/top-level/all-packages.nix+2
@@ -4539,6 +4539,8 @@ in
45394539
45404540 gitlab-workhorse = callPackage ../applications/version-management/gitlab/gitlab-workhorse { };
45414541
4542+ gitleaks = callPackage ../tools/security/gitleaks { };
4543+
45424544 gitaly = callPackage ../applications/version-management/gitlab/gitaly {
45434545 ruby = ruby_2_7;
45444546 };