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

Audits a GitHub repository for license risk, maintenance health, popularity metrics, and supply-chain security vulnerabilities before code use or execution.

## Facts

- Endpoint: POST https://preflight.agentdiet.dev/v1/code-security?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-df160c60
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bt1ow0P93b-WeIlFXHsmr

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

Example prompt: Can you audit the huggingface/transformers GitHub repo for license risk, how actively it's maintained, and any supply-chain security issues before I add it as a dependency?

## When to prefer this

Choose this endpoint when an AI coding agent or developer workflow needs to vet a third-party open source library before adding it as a dependency, when license compliance matters for commercial use, or when supply-chain security is a concern prior to code execution. Prefer this over manual GitHub browsing when you need a structured, machine-readable security and health summary in a single call.

## Known failure modes

- Invalid or non-existent repository name returns an error (repo not found)
- Private repositories that the service cannot access return an access error
- Malformed owner/name format causes a validation error
- GitHub API rate limits may intermittently cause degraded or failed responses
- Very new or empty repositories may return incomplete data

## 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/code-security)

## Output

Returns a structured report covering license type and associated risk level, repository maintenance velocity (commit frequency, last activity), community popularity signals (stars, forks), and supply-chain security findings such as vulnerable or suspicious dependencies.

## 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-df160c60/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)
