@@ -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+}