Git Secret Scanner with Gitleaks

Scans Git repositories for leaked secrets using Gitleaks, TruffleHog, and custom regex patterns. Detects API keys, AWS credentials, private keys, and database connection strings across commit history.

agentskillexchange Updated 28 repo stars

File contents

Git Secret Scanner with Gitleaks

Scans Git repositories for leaked secrets using Gitleaks, TruffleHog, and custom regex patterns. Detects API keys, AWS credentials, private keys, and database connection strings across commit history.

Prerequisites

Git

Installation

Use the upstream install or setup path that matches your environment:

  • brew install gitleaks
  • docker pull zricethezav/gitleaks:latest
  • docker run -v ${path_to_host_folder_to_scan}:/path zricethezav/gitleaks:latest [COMMAND] [OPTIONS] [SOURCE_PATH]
  • docker pull ghcr.io/gitleaks/gitleaks:latest

Requirements and caveats from upstream:

Basic usage or getting-started notes:

Documentation

Source

agentskillexchange/skills/tree/main/skills/git-secret-scanner-gitleaks commit 2fe367f08d

Frequently asked questions

npx skillmds@latest add agentskillexchange/git-secret-scanner-with-gitleaks