Skip to content
Connectors

Scanner deep dive

Git

SourceGAOpen source + Enterprise · Hosted or self-hosted

The Git integration scans Git repositories and local directories for credentials and other sensitive data.

Use cases and coverage

Scanning use cases

  • Check earlier commits before opening a repository

    Point the Git source at your repository or local clone. Include the history you plan to share so earlier versions of configuration files are reviewed.

  • Review one release range

    Set the base and head commits in the Git integration. Scan that range and use the reported commit and path to locate a change.

Related incidentUber’s cloud access key in a private repository · Exposure location

2016 · Exposure location

The FTC’s revised complaint says an AWS key in Uber’s private GitHub repository was used to download files from S3.

How this relates to Git

The FTC placed the AWS key in code in a private GitHub repository. An authorized Git clone lets a team review that repository’s commit history for embedded keys.

Review Git scan scope

Federal Trade Commission report · 2016 Data Breach, paragraph 24

Source check

Atlas AI-assisted source check · 2026-11-22. The publisher describes the event or study. The Atlas explains its relevance to this connector. Detection depends on the scan scope and detectors in use.

What it covers

Compare in matrix

What the docs page’s Capabilities table says, sorted into what the source reaches, how deep it reads and how it runs. Hatched segments and dashes are capabilities the page doesn’t mention. Select ⓘ for what each one means.

  • history

Also reads archive files, base64-encoded data, binaries.

What it reaches

1 supported · 2 not documented

  • History✓
  • Comments–
  • Attachments–

How deep it reads

3 supported · 1 not documented

  • Archives✓
  • Binaries✓
  • Base64✓
  • Office docs–

How it runs

1 supported · 2 qualified · 3 not documented

  • Filters✓
  • Pre-commitCLI hook
  • Pre-receiveCLI hook
  • Real-time–
  • In CI–
  • Auto-resume–

Limits

Caveats the docs page states, like size caps or content it skips.

  • Diffs larger than 1 GB are not scanned.

What TruffleHog documents

Integration guide

You can supply remote repository URLs or point the scanner at directories that already contain local Git clones. Local clones can be configured without remote credentials.

Read the Git integration guide
Open-source CLI

The CLI reads commit diffs and commit metadata. For a local repository with a working tree, staged changes are also in scope.

Read the pinned README passage

Sources checked .

Scan setup and permissions

Set it up

Pick how you’ll run it: each tab has its steps and its options. Enterprise paths come from Truffle’s public docs. The open-source CLI is read from the public TruffleHog code at a pinned commit; it’s a separate product from Enterprise.

Web interface or local configuration

  1. Choose an existing local clone or a remote Git repository. Public repositories and readable local clones can be scanned without repository credentials.
  2. For a private remote, choose HTTPS credentials or an SSH key available to the scanner. If self-hosting, check the documented host dependencies.

Suggested contact (Atlas suggestion) · Repository owner or developer platform team

Suggested first check (Atlas suggestion) · Verify that the scanner account can open the pilot clone or read the repository URL.

Setup reference checked 2026-11-22 · Configuration

In the web UI

  1. Configure from the Integrations page with credentials for the repositories.

Config file options (11)

Options for sources.Git in a local YAML config. Required fields come first.

All 11 config options0 required
Git configuration options
FieldWhat it doesType
repositoriesRemote repositories to clone and scan.list
directoriesLocal directories holding existing Git clones to scan.list
headBranch or commit used as the head of the scan range.string
baseBranch or commit used as the base of the scan range.string
bareSet true if the repository is bare.boolean
maxDepthMaximum commit depth to scan.integer
includePathsFileFile of newline-separated paths to include.string
excludePathsFileFile of newline-separated paths to exclude.string
excludeGlobsComma-separated glob patterns to exclude.string
skipBinariesSkip binary files.boolean
skipArchivesSkip archive files.boolean

Check the options in your installed version with trufflehog git --help.

  1. Choose a repository URL using HTTPS, SSH or a local file URI.
  2. Prepare access to that repository from the machine that runs the command. Use command help to review branch and history options.

Suggested contact (Atlas suggestion) · Repository maintainer

Suggested first check (Atlas suggestion) · Check that the repository URI resolves for the scanner identity.

Setup reference checked 2026-11-22 · git command declaration

$ trufflehog git

Find credentials in git repositories. pkg/sources/git · main.go line 105

Open-source TruffleHog, read from the public code at commit ffdee00 (v3.99.9-6-gffdee00a). Newer releases may differ.

All 13 CLI flagsNone required
trufflehog git flags
FlagWhat it doesType
--include-pathsPath to file with newline separated regexes for files to include in scan.string
--exclude-pathsPath to file with newline separated regexes for files to exclude in scan.string
--exclude-globsComma separated list of globs to exclude in scan. This option filters at the `git log` level, resulting in faster scans.string
--since-commitCommit to start scan from.string
--branchBranch to scan.string
--max-depthMaximum depth of commits to scan.int
--bareScan bare repository (e.g. useful while using in pre-receive hooks)bool
--clone-pathCustom path where the repository should be cloned (default: temp dir).string
--no-cleanupDo not delete cloned repositories after scanning (can only be used with --clone-path). Each clone is kept in its own directory, so ensure sufficient disk space: usage grows with every repository scanned and every run.bool
--trust-local-git-configTrust local git config.bool
--allowNo-op flag for backwards compat.bool
--entropyNo-op flag for backwards compat.bool
--regexNo-op flag for backwards compat.bool

Access

How the scanner authenticates and what it’s allowed to read. Write access is highlighted.

Auth methods

  • Basic authentication
  • SSH authentication
  • Unauthenticated

Before you start

  • Git
  • rpm2cpio
  • binutils
  • cpio

Sources and related tools

Docs OSS codeScraped, not reviewedVersion control systems

Evidence

Possible issue in Truffle’s docs

  • The Capabilities table lists Pre-commit and Pre-receive. These are hooks run with the TruffleHog CLI in a Git workflow, not features of the Enterprise source integration.

Shown here as the docs state it. All docs issues.

Docs scraped 2026-11-17. Each docs page was fetched with Firecrawl twice (an overview pass and a detail pass for capabilities, options, permissions and notes) and read by an extraction prompt. Descriptions are short paraphrases. Open-source CLI facts are parsed from main.go at the pinned TruffleHog commit. Not reviewed by a person. Pinned commit ffdee00. Check the source before quoting a detail, or review this connector so the badge says so.