Automic VaultAutomic Vault

brew

Install gitleaks with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Audit git repos for secrets. Version 8.30.1 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install gitleaks

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install gitleaks

MacPorts ports tree · security/gitleaks/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add gitleaks

Alpine Linux edge package indexes · gitleaks · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install gitleaks

Debian stable package indexes · gitleaks · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install gitleaks

Fedora Rawhide package metadata · gitleaks · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#gitleaks

nixpkgs package indexes · pkgs/by-name/gi/gitleaks/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S gitleaks

Arch Linux sync databases · gitleaks · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install gitleaks

openSUSE Tumbleweed package metadata · gitleaks · source: download.opensuse.org

Windows

Chocolateyverified · 92%
choco install gitleaks

Chocolatey community package catalog · gitleaks · source: community.chocolatey.org

Scoopverified · 92%
scoop install main/gitleaks

Scoop official bucket manifest trees · bucket/gitleaks.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id Gitleaks.Gitleaks -e

Windows Package Manager source index · Gitleaks.Gitleaks · source: cdn.winget.microsoft.com

overview

Package summary

Audit git repos for secrets

Commands and aliases

  • gitleaks

history

Project history and usage

Gitleaks is an open-source secret scanner for Git repositories, files, directories, and standard input. It is best known as a fast CLI that can run locally, in pre-commit hooks, in containers, or in CI before leaked credentials reach shared history.

Project history

The GitHub repository was created in January 2018 and grew around a rule-based scanner for passwords, API keys, and tokens. The project is written in Go and ships a default TOML configuration containing detection rules and allowlists.

The v8 command model consolidated scanning around git, dir, and stdin modes, while older detect and protect commands were hidden for compatibility. The README later described the project as feature complete, with security patches as the maintenance focus and Betterleaks named as the author's new direction.

Adoption history

Gitleaks gained strong adoption in the DevSecOps ecosystem because it fits several control points: developer workstations, pre-commit hooks, pull-request checks, scheduled repository scans, and containerized CI jobs. The project homepage cites large Docker, GitHub release, and Homebrew usage figures, and the GitHub repository has a large star and fork count.

The official Gitleaks GitHub Action widened adoption by giving teams a hosted-CI path for scanning pull requests and commits without writing their own wrapper around the CLI.

How it is used

Practitioners use gitleaks git to scan repository history, gitleaks dir to scan working trees or exported source, and gitleaks stdin for pipeline streams. Baseline reports let teams suppress already-known findings while failing builds for newly introduced secrets.

Teams customize .gitleaks.toml when they need organization-specific rules, allowlists, report formats, or redaction behavior. In package-manager workflows, the single binary makes it easy to add secret scanning to local development and CI images without a language runtime.

Why package nerds care

Gitleaks is a package-manager favorite because it is a Go security utility with broad platform binaries, Docker images, a pre-commit hook, and an official action. That combination makes it easy to pin in reproducible developer environments and CI toolchains.

Timeline

  • 2018: The gitleaks/gitleaks repository was created.
  • 2022: v8-era releases emphasized the newer git, dir, and stdin scanning modes.
  • 2024: v8.19.0 hid the older detect and protect commands in favor of the newer command names.
  • 2026: The README described Gitleaks as feature complete, with future releases focused on security patches.

Related projects

  • Gitleaks Action is the official GitHub Action for running scans on pull requests, commits, or on demand.
  • Betterleaks is named by the maintainer as the follow-on project receiving new feature work.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
(target path)/.gitleaks.toml

executables

Installed executables

CommandKindExposureNote
gitleakscliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version8.30.1
manager updated
local dataok
upstreamcurrent
latest detectedv8.30.1

https://github.com/gitleaks/gitleaks

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:gitleaks
Version8.30.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gitleaks
Homepagehttps://gitleaks.io/
Repositoryhttps://github.com/gitleaks/gitleaks
Upstream docshttps://github.com/gitleaks/gitleaks#readme
LicenseMIT
Source archivehttps://github.com/gitleaks/gitleaks/archive/refs/tags/v8.30.1.tar.gz
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegitleaks
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

gitleaks 8.16.0-1+b12

protect and discover secrets using Gitleaks 🔑

https://github.com/gitleaks/gitleaks

sudo apt install gitleaks
  • Section: utils
  • Architecture: amd64
  • Source Package: gitleaks
  • 1 dependencies
  • normalized package name match
  • Matched by: Gitleaks
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gitleaks from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

gitleaks

nix profile install nixpkgs#gitleaks
  • normalized package name match
  • Matched by: Gitleaks
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gi/gitleaks/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

gitleaks 8.16.0-1build1

protect and discover secrets using Gitleaks 🔑

https://github.com/gitleaks/gitleaks

sudo apt install gitleaks
  • Section: universe/utils
  • Architecture: amd64
  • 1 dependencies
  • normalized package name match
  • Matched by: Gitleaks
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gitleaks from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

gitleaks 8.30.1-r0

Audit Git repos for secrets and keys

https://github.com/gitleaks/gitleaks

sudo apk add gitleaks
  • License: MIT
  • Architecture: x86_64
  • Source Package: gitleaks
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gitleaks
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gitleaks from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

gitleaks-bash-completion 8.30.1-r0

Bash completions for gitleaks

https://github.com/gitleaks/gitleaks

sudo apk add gitleaks-bash-completion
  • License: MIT
  • Architecture: x86_64
  • Source Package: gitleaks
  • normalized package name match
  • Matched by: Gitleaks
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gitleaks-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

gitleaks-doc 8.30.1-r0

Audit Git repos for secrets and keys (documentation)

https://github.com/gitleaks/gitleaks

sudo apk add gitleaks-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: gitleaks
  • normalized package name match
  • Matched by: Gitleaks
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gitleaks-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

gitleaks-fish-completion 8.30.1-r0

Fish completions for gitleaks

https://github.com/gitleaks/gitleaks

sudo apk add gitleaks-fish-completion
  • License: MIT
  • Architecture: x86_64
  • Source Package: gitleaks
  • normalized package name match
  • Matched by: Gitleaks
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gitleaks-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

gitleaks-zsh-completion 8.30.1-r0

Zsh completions for gitleaks

https://github.com/gitleaks/gitleaks

sudo apk add gitleaks-zsh-completion
  • License: MIT
  • Architecture: x86_64
  • Source Package: gitleaks
  • normalized package name match
  • Matched by: Gitleaks
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gitleaks-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

gitleaks 8.30.1-1.fc45

Scan git repos (or files) for secrets using regex and entropy

https://github.com/zricethezav/gitleaks

sudo dnf install gitleaks
  • License: 0BSD AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gitleaks
  • 4 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Gitleaks
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gitleaks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

gitleaks 8.30.1-1

Audit Git repos for secrets and keys

https://github.com/gitleaks/gitleaks

sudo pacman -S gitleaks
  • License: MIT
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Gitleaks
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: gitleaks from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

gitleaks 8.30.1-1.1

Protect and discover secrets using Gitleaks

https://github.com/gitleaks/gitleaks

sudo zypper install gitleaks
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gitleaks
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gitleaks
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gitleaks from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

gitleaks-bash-completion 8.30.1-1.1

Bash Completion for gitleaks

https://github.com/gitleaks/gitleaks

sudo zypper install gitleaks-bash-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: gitleaks
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gitleaks
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gitleaks-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

gitleaks-fish-completion 8.30.1-1.1

Fish Completion for gitleaks

https://github.com/gitleaks/gitleaks

sudo zypper install gitleaks-fish-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: gitleaks
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gitleaks
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gitleaks-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

gitleaks-zsh-completion 8.30.1-1.1

Zsh Completion for gitleaks

https://github.com/gitleaks/gitleaks

sudo zypper install gitleaks-zsh-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: gitleaks
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gitleaks
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gitleaks-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

gitleaks

sudo port install gitleaks
  • normalized package name match
  • Matched by: Gitleaks
MacPorts ports tree · api.github.com · MacPorts ports tree: security/gitleaks/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

gitleaks

choco install gitleaks
  • normalized package name match
  • Matched by: Gitleaks
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: gitleaks from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='7.3136','buttercup'

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment