# 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-11-21).

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

## Facts

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

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-ad6c65e2 -d '<json body>'
```

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

## When to prefer this

Use this endpoint when an AI agent or developer needs a quick, pre-execution security gate on a GitHub repository — especially before adopting a new open-source dependency, running third-party code, or onboarding a repo into a CI/CD pipeline. Prefer it over manual GitHub browsing or generic code review tools when you need a structured, machine-readable risk report covering license, maintenance, secrets, and supply-chain concerns in a single call.

## Known failure modes

- Invalid or non-existent repository slug returns an error (repo not found)
- Private repositories inaccessible without credentials return an access-denied error
- Rate limits on GitHub API may cause partial or delayed results
- Malformed owner/name format (missing slash or extra segments) causes validation failure
- Very large repositories may timeout or return incomplete dependency scan results

## 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 report covering license risk classification (e.g. GPL/AGPL flags), repository maintenance velocity (commit frequency, last commit date), popularity signals (stars, forks), supply-chain security findings (vulnerable or suspicious dependencies), and any detected secret or credential leaks present 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-ad6c65e2/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)
