Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bb5ab2b09dd6
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1ca55e5c3b08
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Jan 19, 2021

  1. gitleaks: init at 7.2.0

    fabaff committed Jan 19, 2021
    Copy the full SHA
    84634ff View commit details
  2. Merge pull request #110015 from fabaff/gitleaks

    gitleaks: init at 7.2.0
    SuperSandro2000 authored Jan 19, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1ca55e5 View commit details
Showing with 31 additions and 0 deletions.
  1. +29 −0 pkgs/tools/security/gitleaks/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
29 changes: 29 additions & 0 deletions pkgs/tools/security/gitleaks/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ buildGoModule
, fetchFromGitHub
, lib
}:

buildGoModule rec {
pname = "gitleaks";
version = "7.2.0";

src = fetchFromGitHub {
owner = "zricethezav";
repo = pname;
rev = "v${version}";
sha256 = "1pdbkjx8h6ijypsxyv34lykymaqf8wnfyjk3ldp49apbx01bl34y";
};

vendorSha256 = "0kk8ci7vprqw4v7cigspshfd13k2wyy4pdkxf11pqc2fz8j07kh9";

meta = with lib; {
description = "Scan git repos (or files) for secrets";
longDescription = ''
Gitleaks is a SAST tool for detecting hardcoded secrets like passwords,
API keys, and tokens in git repos.
'';
homepage = "https://github.com/zricethezav/gitleaks";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -4539,6 +4539,8 @@ in

gitlab-workhorse = callPackage ../applications/version-management/gitlab/gitlab-workhorse { };

gitleaks = callPackage ../tools/security/gitleaks { };

gitaly = callPackage ../applications/version-management/gitlab/gitaly {
ruby = ruby_2_7;
};