# 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 velocity, dependency supply-chain vulnerabilities, stars, and forks before integrating or executing its code.

## Facts

- Endpoint: POST https://preflight.agentdiet.dev/v1/github-scanner?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-53ebdc45
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aaF-f9x1cvkBk4DbuwJ9a

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

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

## When to prefer this

Choose this endpoint when you need a pre-flight security and compliance check on a GitHub repository before executing, forking, or depending on its code — especially when license compatibility, supply-chain integrity, or maintenance health are decision factors for open source adoption.

## Known failure modes

- Invalid or non-existent repository name returns an error (repo not found)
- Private repositories inaccessible without credentials will fail
- GitHub API rate limiting may cause transient failures
- Malformed owner/name format causes validation error
- Repository with no license file returns unknown license risk

## 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/github-scanner)

## Output

Returns a structured report covering the repository's license type and risk level, maintenance velocity metrics (commit frequency, last commit date), community signals (stars and forks), and supply-chain security findings including potentially vulnerable or malicious 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-53ebdc45/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)
