DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to use Gitleaks: what you can do with it

What is Gitleaks? Gitleaks detects hardcoded secrets such as passwords, API keys and tokens in git history, directories and files, or anything piped to stdin. It runs as a CLI, a Docker image, a pre-commit hook or a GitHub Action, supports baselines so only new findings are reported, custom TOML rules, redaction and JSON, CSV, JUnit and SARIF reports. The maintainer has declared it feature complete, with future releases limited to security patches.

How do I use it? Install with brew install gitleaks or docker pull zricethezav/gitleaks:latest; then run gitleaks git -v inside the repo to scan its git history with verbose output; save a report with gitleaks git --report-path gitleaks-report.json. Full steps below.

Trended earlier

View repo on GitHub

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer

3 use cases

Quick start with Gitleaks

  1. Check you have what it needs: Homebrew, Docker, Go to build from source, or a release binary; pre-commit if you want the hook; Read access to the repos or folders you scan.
  2. Open gitleaks/gitleaks on GitHub and read the README and license.
  3. Install with brew install gitleaks or docker pull zricethezav/gitleaks:latest
  4. Run gitleaks git -v inside the repo to scan its git history with verbose output
  5. Save a report with gitleaks git --report-path gitleaks-report.json
  6. Use --redact so secrets are hidden from logs and stdout when you share output

These steps come from our top use case, Scan a repo's full history for leaked secrets, which also has a copy-paste agent prompt.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for gitleaks/gitleaks

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Best AI repos for Security and science

About this repo

  • Who it is forDevelopers and security teams who want to catch leaked credentials before they reach a shared repo.
  • Why it is hot31k stars, talked about in 2 AI sources we track
  • LanguageGo
  • Sourcegithub.com/gitleaks/gitleaks ยท Back to Hot repos

Requirements

  • Homebrew, Docker, Go to build from source, or a release binary
  • pre-commit if you want the hook
  • Read access to the repos or folders you scan

Add this badge to your README

Maintain Gitleaks? Show readers where to find these use cases. Use cases on Deduped

Markdown

[![Use cases on Deduped](https://dedupedai.com/badge/gitleaks/gitleaks.svg)](https://dedupedai.com/use-cases/gitleaks-gitleaks/?utm_source=github&utm_medium=badge&utm_campaign=gitleaks-gitleaks)

HTML

<a href="https://dedupedai.com/use-cases/gitleaks-gitleaks/?utm_source=github&amp;utm_medium=badge&amp;utm_campaign=gitleaks-gitleaks"><img src="https://dedupedai.com/badge/gitleaks/gitleaks.svg" alt="Use cases on Deduped" height="20"></a>

A static image, no tracking script. About the badge

Questions about Gitleaks

What is Gitleaks?

Gitleaks detects hardcoded secrets such as passwords, API keys and tokens in git history, directories and files, or anything piped to stdin. It runs as a CLI, a Docker image, a pre-commit hook or a GitHub Action, supports baselines so only new findings are reported, custom TOML rules, redaction and JSON, CSV, JUnit and SARIF reports. The maintainer has declared it feature complete, with future releases limited to security patches. It is an open-source project on GitHub: https://github.com/gitleaks/gitleaks.

How do I use Gitleaks?

Install with brew install gitleaks or docker pull zricethezav/gitleaks:latest; then run gitleaks git -v inside the repo to scan its git history with verbose output; save a report with gitleaks git --report-path gitleaks-report.json. The use cases on this page give the full steps and a copy-paste agent prompt for each job.

Who is Gitleaks for?

Developers and security teams who want to catch leaked credentials before they reach a shared repo.

What can I do with Gitleaks?

3 use cases so far, for example: Scan a repo's full history for leaked secrets; Stop secrets before they are committed; Adopt secret scanning on an old repo without the noise. Each has steps and a copy-paste agent prompt.

What do I need to run Gitleaks?

Homebrew, Docker, Go to build from source, or a release binary; pre-commit if you want the hook; Read access to the repos or folders you scan.

What are alternatives to Gitleaks?

Other hot AI repos in Security and science: Failproofai, Codex Security, Chgnet, Semgrep, Mace.

Is Gitleaks safe to run?

Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.