Go to example tasks

Scan a git repo's full history for leaked secrets

Clone any public git repository and scan every commit with Betterleaks for API keys, tokens, passwords and private keys, each finding with file, line, commit, author and date. Works with GitHub, GitLab or any git URL; the example repo holds test keys made for scanners.

Try for free
Betterleaks Cloud - GitHub & S3 Secret Scanner
Betterleaks Cloud - GitHub & S3 Secret Scanneranshumanatrey/betterleaks-cloud
Rule (RuleID)
Rule description (Description)
Secret value (Secret)
Matched text (Match)
+10 fields
Text
Number
Boolean
List
Object

Input

Target URL (target_url):https://github.com/trufflesecurity/test_keys.git
Git platform (git_platform):github
Verify secrets live (validation):false

Output fields

Rule (RuleID)
Rule description (Description)
Secret value (Secret)
Matched text (Match)
Live? (ValidationStatus)
Line (StartLine)
End line (EndLine)
Finding ID (Fingerprint)
Rule tags (Tags)
Capture groups (CaptureGroups)
Extra details (Attributes)
Source text (Fragment)
Validation reason (ValidationReason)
Validation details (ValidationMeta)

How it works

Sign up on Apify or log in

The Betterleaks Cloud - GitHub & S3 Secret Scanner Actor is ready to run with the inputs already set for "Scan a git repo's full history for leaked secrets". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Scan a git repo's full history for leaked secrets" task

The Betterleaks Cloud - GitHub & S3 Secret Scanner Actor will start running based on the input automatically. You can also change all the input fields, like target url (target_url), git platform (git_platform), and more, to match your specific use case.

Receive the "Scan a git repo's full history for leaked secrets" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as rule (ruleid), rule description (description), secret value (secret), and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Scan a git repo's full history for leaked secrets" task via API.

Image

Integrate "Scan a git repo's full history for leaked secrets" into your workflow

Connect "Scan a git repo's full history for leaked secrets" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay