git.iko.soy/typeable/nixpkgs
on master help sign in
gitleaks: init at 7.2.0
commit84634ff0c3b817c224ef99eaddf703c4a6e9dec0 authorFabian Affolter <mail@fabian-affolter.ch> dateTue 19 Jan 2021, 21:56 (6 years ago) parentdd3238c
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
@@ -4532,6 +4532,8 @@ in
45324532
45334533 gitlab-workhorse = callPackage ../applications/version-management/gitlab/gitlab-workhorse { };
45344534
4535+ gitleaks = callPackage ../tools/security/gitleaks { };
4536+
45354537 gitaly = callPackage ../applications/version-management/gitlab/gitaly {
45364538 ruby = ruby_2_7;
45374539 };