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.
Input
Output fields
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 target (user, organization, or repo url), 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 repo, file, 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.

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
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay