Scanner deep dive
Git
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
Uber’s cloud access key in a private repository
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 scopeFederal 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 matrixWhat 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
- 1Choose an existing local clone or a remote Git repository. Public repositories and readable local clones can be scanned without repository credentials.
- 2For 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
- 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
| Field | What it does | Type |
|---|---|---|
repositories | Remote repositories to clone and scan. | list |
directories | Local directories holding existing Git clones to scan. | list |
head | Branch or commit used as the head of the scan range. | string |
base | Branch or commit used as the base of the scan range. | string |
bare | Set true if the repository is bare. | boolean |
maxDepth | Maximum commit depth to scan. | integer |
includePathsFile | File of newline-separated paths to include. | string |
excludePathsFile | File of newline-separated paths to exclude. | string |
excludeGlobs | Comma-separated glob patterns to exclude. | string |
skipBinaries | Skip binary files. | boolean |
skipArchives | Skip archive files. | boolean |
Check the options in your installed version with trufflehog git --help.
- 1Choose a repository URL using HTTPS, SSH or a local file URI.
- 2Prepare 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
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
| Flag | What it does | Type |
|---|---|---|
| --include-paths | Path to file with newline separated regexes for files to include in scan. | string |
| --exclude-paths | Path to file with newline separated regexes for files to exclude in scan. | string |
| --exclude-globs | Comma separated list of globs to exclude in scan. This option filters at the `git log` level, resulting in faster scans. | string |
| --since-commit | Commit to start scan from. | string |
| --branch | Branch to scan. | string |
| --max-depth | Maximum depth of commits to scan. | int |
| --bare | Scan bare repository (e.g. useful while using in pre-receive hooks) | bool |
| --clone-path | Custom path where the repository should be cloned (default: temp dir). | string |
| --no-cleanup | Do 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-config | Trust local git config. | bool |
| --allow | No-op flag for backwards compat. | bool |
| --entropy | No-op flag for backwards compat. | bool |
| --regex | No-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
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.
- Source docs pageUpdated 08 Jul 2026
- Open-source packagepkg/sources/git
- Sources indexStatus, edition, deployment
- Category grouping