Go to example tasks

Scan a GitHub repo for leaked API keys and secrets

Scan one public GitHub repository's full history, every branch and pull request included, for leaked AWS, Stripe, OpenAI, Anthropic and GitHub tokens with gitleaks, each finding with file, line, commit and author. The example repo holds test keys made for secret scanners; replace it with yours.

Try for free
Gitleaks Cloud - GitHub API Key Hunter & Secret Scanner
Gitleaks Cloud - GitHub API Key Hunter & Secret Scanneranshumanatrey/gitleaks-github-secret-scanner
Repository (repo_url)
File path (file)
Line number (line)
Secret kind (secret_name)
+13 fields
Text
Number
Boolean
List
Object

Input

GitHub target (target):https://github.com/trufflesecurity/test_keys
Secret type (platform):aws
Also scan (additional_platforms):stripe+3

Output fields

Repository (repo_url)
File path (file)
Line number (line)
Secret kind (secret_name)
Secret found (secret_value)
Has a pair? (paired)
Paired part (paired_with)
Open in GitHub (permalink)
Service searched (platform)
Branch or ref (branch_ref)
Deleted commit? (is_dangling)
Rule (rule_id)
Commit (commit_sha)
Test key? (is_test_key)
Author (author_name)
Author email (author_email)
Commit date (commit_date)

How it works

Sign up on Apify or log in

The Gitleaks Cloud - GitHub API Key Hunter & Secret Scanner Actor is ready to run with the inputs already set for "Scan a GitHub repo for leaked API keys and secrets". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Scan a GitHub repo for leaked API keys and secrets" task

The Gitleaks Cloud - GitHub API Key Hunter & Secret Scanner Actor will start running based on the input automatically. You can also change all the input fields, like github target (target), secret type (platform), and more, to match your specific use case.

Receive the "Scan a GitHub repo for leaked API keys and 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 repository (repo_url), file path (file), line number (line), 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 GitHub repo for leaked API keys and secrets" task via API.

Image

Integrate "Scan a GitHub repo for leaked API keys and secrets" into your workflow

Connect "Scan a GitHub repo for leaked API keys and 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