# GitHub Repository Dependency & License Security Auditor

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

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

## Facts

- Endpoint: POST https://onchain-risk.agentdiet.dev/v1/dependency-audit?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Provider: onchain-risk.agentdiet.dev
- Website: https://onchain-risk.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/onchain-risk-agentdiet-dev-github-repository-dependency-license-13816ea3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7vtSPRHlwwvIt0J6ukbJa

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 onchain-risk-agentdiet-dev-github-repository-dependency-license-13816ea3 -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when an AI coding agent, developer, or automated CI/CD pipeline needs to evaluate a GitHub repository before adopting it as a dependency, executing its code, or approving a pull request that introduces it. It is particularly valuable for supply-chain security enforcement, open source license compliance checks, and maintenance health due diligence — all in a single call at $0.01 per audit.

## Known failure modes

- Invalid or non-existent repository format returns an error (repo must be owner/name format)
- Private or inaccessible repositories may return insufficient data or an access error
- GitHub API rate limiting may affect result completeness
- Newly created repositories with minimal history may return sparse signals
- Network timeouts if GitHub is slow to respond

## 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://onchain-risk.agentdiet.dev/v1/dependency-audit)

## Output

Returns a structured report covering: license type and risk classification, maintenance velocity metrics (commit frequency, last activity, open issues), popularity signals (stars and forks), and supply-chain security findings including 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/onchain-risk-agentdiet-dev-github-repository-dependency-license-13816ea3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchain-risk.agentdiet.dev](https://www.zero.xyz/host/onchain-risk.agentdiet.dev/llms.txt)
