# GitHub Repository License, Dependency & Supply-Chain Security Auditor

> GitHub Repository License, Dependency & Supply-Chain Security Auditor is a paid API for AI agents from github-audit.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown.

Audits a GitHub repository for license risk, maintenance velocity, stars/forks metrics, and supply-chain security vulnerabilities before integrating or executing its code.

## Facts

- Endpoint: GET https://github-audit.agentdiet.dev/v1/license-compliance-scan?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Activations on Zero: 0
- Provider: github-audit.agentdiet.dev
- Website: https://github-audit.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/github-audit-agentdiet-dev-github-repository-license-dependency-4b19cff4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KPz7aoyOVSOjGRRfBQjtq

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 github-audit-agentdiet-dev-github-repository-license-dependency-4b19cff4
```

Example prompt: Before I add langchain-ai/langgraph as a dependency, can you audit it on GitHub for license risks, how actively it's maintained, its stars and forks, and any supply-chain security concerns?

## When to prefer this

Choose this endpoint when an AI coding agent or developer needs a pre-flight safety check on a GitHub repository — specifically to assess license compatibility, supply-chain risk, and maintenance health — before integrating, executing, or depending on that repo's code. It is especially valuable as an automated gate in agentic workflows that autonomously pull in open-source dependencies.

## Known failure modes

- Invalid or non-existent repository name returns an error (repo not found)
- Private repositories inaccessible to the API return an authorization error
- GitHub API rate limiting may cause transient failures or incomplete data
- Repositories with no license file may return a 'license unknown' risk flag
- Malformed owner/name format in the repo parameter causes a validation error

## 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://github-audit.agentdiet.dev/v1/license-compliance-scan)

## Output

Returns a structured report covering: the repository's detected license and associated legal risk level, maintenance velocity indicators (commit frequency, last activity), community signals (star and fork counts), and supply-chain security findings including flagged dependencies or known vulnerabilities.

## 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/github-audit-agentdiet-dev-github-repository-license-dependency-4b19cff4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from github-audit.agentdiet.dev](https://www.zero.xyz/host/github-audit.agentdiet.dev/llms.txt)
