# GitHub Repository Secret Leak Scanner & Security Auditor

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

Scans a GitHub repository for secret leaks, license risk, supply-chain vulnerabilities, and maintenance health metrics before code execution or dependency adoption.

## Facts

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

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 github-audit-agentdiet-dev-github-repository-secret-leak-scanner-529a0958 -d '<json body>'
```

Example prompt: Can you audit the langchain-ai/langgraph GitHub repo for any leaked secrets, license risks, and check how actively maintained it is before I start depending on it?

## When to prefer this

Choose this endpoint when an AI coding agent needs to vet a GitHub repository before executing its code, adding it as a dependency, or forking it — especially when license compliance, secret exposure, or supply-chain trustworthiness are concerns. It is purpose-built for pre-execution security gating in agentic coding workflows, combining secret scanning, license risk, and maintenance signals in a single call.

## Known failure modes

- Invalid or non-existent repository in owner/name format returns an error
- Private repositories that are inaccessible return an authorization or not-found error
- GitHub API rate limiting may cause transient failures
- Malformed repo input (missing slash, wrong format) triggers validation error
- Network timeouts if GitHub is slow to respond

## 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://github-audit.agentdiet.dev/v1/secret-leak-scan)

## Output

Returns a structured security audit report covering: detected secret or credential leaks, license type and associated legal risk level, repository maintenance signals (commit velocity, last activity), community health metrics (stars, forks), and supply-chain security findings such as suspicious dependencies or known vulnerability flags.

## 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/github-audit-agentdiet-dev-github-repository-secret-leak-scanner-529a0958/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from github-audit.agentdiet.dev](https://www.zero.xyz/host/github-audit.agentdiet.dev/llms.txt)
