# GitHub Repository Secret Leak Scanner

> GitHub Repository Secret Leak Scanner is a paid API for AI agents from x402-audit.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown (last checked 2026-10-21).

Scans a GitHub repository for exposed secrets, license risk, dependency vulnerabilities, and supply-chain security issues before code execution.

## Facts

- Endpoint: GET https://x402-audit.agentdiet.dev/v1/secret-leak-scan?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Provider: x402-audit.agentdiet.dev
- Website: https://x402-audit.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/x402-audit-agentdiet-dev-github-repository-secret-leak-scanner-6b7a203c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1dv6JXdOgHZmIL4bxaPFF

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-audit-agentdiet-dev-github-repository-secret-leak-scanner-6b7a203c
```

Example prompt: Before I pull in langchain-ai/langgraph as a dependency, can you scan it for any exposed secrets, license risks, and supply-chain security issues?

## When to prefer this

Choose this endpoint when an AI agent needs to vet a GitHub repository before cloning, executing, or integrating its code — especially to detect hardcoded secrets, assess license compatibility, evaluate supply-chain risk, or check maintenance health. Prefer this over generic CVE scanners when the target is a GitHub repository URL and you need a combined secret-leak plus dependency audit in one call.

## Known failure modes

- Invalid repo format (not owner/name) returns validation error
- Private or non-existent repository returns 404 or access error
- GitHub API rate limiting may cause incomplete results
- Malformed repo name with special characters may be rejected
- Payment failure via x402 protocol returns 402 before scan executes

## How this service works

Evaluates any GitHub repository for license risk, maintenance velocity, stars/forks, and supply-chain security before code execution. (Live x402 v2, IETF MPP & MCP endpoint at https://x402-audit.agentdiet.dev/v1/secret-leak-scan)

## Output

Returns a structured security report for the specified GitHub repository, including detected secret or credential leaks, license risk classification, dependency vulnerability findings, supply-chain security indicators, repository maintenance velocity (commit cadence, last update), and community signals such as stars and forks count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "repo"
 ],
 "properties": {
  "repo": {
   "type": "string",
   "minLength": 1,
   "description": "GitHub repository in owner/name format (e.g. modelcontextprotocol/servers or langchain-ai/langgraph)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-audit-agentdiet-dev-github-repository-secret-leak-scanner-6b7a203c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-audit.agentdiet.dev](https://www.zero.xyz/host/x402-audit.agentdiet.dev/llms.txt)
