# GitHub Repository Security & License Risk Auditor

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

Evaluates a GitHub repository for license risk, maintenance velocity, stars/forks, and supply-chain security before code execution or dependency adoption.

## Facts

- Endpoint: GET https://serp-extract.agentdiet.dev/v1/repo-risk-score?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Provider: serp-extract.agentdiet.dev
- Website: https://serp-extract.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/serp-extract-agentdiet-dev-github-repository-security-license-risk-d6860b23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y56QUnrejixpUL806bv70

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 serp-extract-agentdiet-dev-github-repository-security-license-risk-d6860b23
```

Example prompt: Before I add langchain-ai/langgraph as a dependency in my project, can you audit that GitHub repo for license risk, supply-chain security issues, and how actively it's being maintained?

## When to prefer this

Choose this endpoint when an AI coding agent or developer needs a quick, automated pre-flight risk assessment of a GitHub repository before adding it as a dependency, forking it, or executing its code. It is especially valuable for license compliance checks, supply-chain security audits, and evaluating maintenance health in a single call, replacing manual inspection of multiple GitHub metadata signals.

## Known failure modes

- Invalid or non-existent repository format returns an error (e.g. malformed owner/name string)
- Private or inaccessible repositories may return insufficient data or an access error
- GitHub API rate limiting may cause degraded or failed responses
- Repositories with no license file may return an unknown license risk classification
- Payment failure via x402 results in HTTP 402 before processing begins

## 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://serp-extract.agentdiet.dev/v1/repo-risk-score)

## Output

Returns a structured risk assessment object covering license risk classification, maintenance velocity indicators (commit frequency, last activity), repository popularity signals (stars, forks), and supply-chain security flags for the specified GitHub 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)"
  },
  "limit": {
   "type": "integer",
   "default": 20,
   "maximum": 100,
   "minimum": 1,
   "description": "Maximum number of items to return per page (1-100)"
  },
  "cursor": {
   "type": "string",
   "description": "Opaque pagination cursor for fetching the next page"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/serp-extract-agentdiet-dev-github-repository-security-license-risk-d6860b23/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from serp-extract.agentdiet.dev](https://www.zero.xyz/host/serp-extract.agentdiet.dev/llms.txt)
