1. Images & Charts
  2. gitleaks
gitleaks

gitleaks

Utils
Updated in the last hour

Gitleaks Overview

Secure your stack with a hardened Gitleaks image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.


Use Gitleaks to scan Git repositories, files, and commit history for hardcoded secrets such as passwords, API keys, and tokens.


Try It Out

Scan a local Git repository for secrets by mounting it into the container:

docker run --rm \
  -v $(pwd):/path \
  reg.mini.dev/gitleaks git /path

To scan a directory that is not a Git repository:

docker run --rm \
  -v $(pwd):/path \
  reg.mini.dev/gitleaks dir /path

If any secrets are found, gitleaks exits with a non-zero status code and prints findings to stdout.

○
    │╲
    │ ○
    ○ ░
    ░    gitleaks

Finding:     secret=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Secret:      ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
RuleID:      github-pat
Entropy:     3.66
File:        config.yml
Line:        4
Commit:      a1b2c3d4

Technical Considerations

The Gitleaks image provided by Minimus is a slim, security-hardened alternative to the public image. The images are largely interchangeable, with a few differences as noted below.

Gitleaks built by Minimus:

  1. Runs as a non-root user by default for a security-first approach that protects against privilege escalation attacks.
  2. Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.

The Payoff

A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.


Terms & Info

Trademark

This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.

Disclaimer

Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.