# GitHub Repository Security & License Auditor

> GitHub Repository Security & License Auditor is a paid API for AI agents from preflight.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown (last checked 2026-10-21).

Audits a GitHub repository for license risk, maintenance velocity, stars/forks metrics, dependency supply-chain security, and secret leaks before integrating or executing its code.

## Facts

- Endpoint: GET https://preflight.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: preflight.agentdiet.dev
- Website: https://preflight.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/preflight-agentdiet-dev-github-repository-security-license-auditor-20b78b1a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dKw0QfsXUbGgK6A-usLYT

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 preflight-agentdiet-dev-github-repository-security-license-auditor-20b78b1a
```

Example prompt: Before I add langchain-ai/langgraph as a dependency, can you audit that GitHub repo for license risks, secret leaks, supply-chain vulnerabilities, and check how actively it's maintained?

## When to prefer this

Use this endpoint when an AI coding agent or developer needs to vet a GitHub repository before adopting it as a dependency, integrating its code, or deploying from it — especially when license compliance, supply-chain security, or secret exposure are concerns. Prefer this over generic GitHub API calls when you need a consolidated security and health summary in a single call.

## Known failure modes

- Invalid or non-existent repository (owner/name format incorrect) — returns error
- Private repository with no public access — may return partial or no data
- GitHub API rate limits hit — may return timeout or degraded results
- Repository has no license file — license risk may be indeterminate
- Payment not completed (x402) — returns 402 Payment Required

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

## Output

Returns a structured object containing license risk classification, maintenance velocity indicators, repository popularity metrics (stars, forks), supply-chain security findings, and any detected secret leaks or exposed credentials in the repository.

## 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/preflight-agentdiet-dev-github-repository-security-license-auditor-20b78b1a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preflight.agentdiet.dev](https://www.zero.xyz/host/preflight.agentdiet.dev/llms.txt)
