Skip to content
Supported/Secrets

Gitleaks + AppGuard

Detect hardcoded secrets like passwords, API keys, and tokens in Git repositories. Fast, regex-based scanning.

What is Gitleaks?

Gitleaks is a SAST tool for detecting and preventing hardcoded secrets in git repos. It uses regex patterns to identify secrets like API keys, passwords, tokens, and other sensitive information that may have been accidentally committed. Gitleaks can scan entire git history, making it ideal for both pre-commit hooks and full repository audits.

Supported result formats

JSONCSV

Integrate Gitleaks with AppGuard

1

Install Gitleaks

Install Gitleaks via Homebrew, Docker, or binary release.

brew install gitleaks
2

Scan your repository

Run Gitleaks against your repo and output JSON.

gitleaks detect --source . --report-format json --report-path results.json
3

Push to AppGuard

Send the results to AppGuard for centralized tracking.

curl -X POST "$APPGUARD_PUBLIC_URL/api/ingest" \
  -H "X-Api-Token: $API_TOKEN" \
  -F "[email protected]"

What AppGuard adds to Gitleaks

Historical tracking

Track secret detection trends across commits and releases.

Severity classification

Automatic severity assignment based on secret type and risk level.

Assignment workflow

Assign detected secrets to team members for remediation.

Track Gitleaks results with AppGuard

Self-host AppGuard and connect Gitleaks in minutes. AGPLv3 licensed, full data ownership.

Frequently Asked Questions

Does AppGuard support Gitleaks custom rules?
Yes. Gitleaks custom rules are defined in your .gitleaks.toml and produce standard JSON output that AppGuard can ingest.
Can I scan private repositories?
Yes. Gitleaks runs locally against your git repository, so it works with private repos. Only the results (not the source code) are sent to AppGuard.