# GitHub Repository Security & License Auditor

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

Evaluates a GitHub repository for license risk, maintenance velocity, dependency vulnerabilities, and supply-chain security before code execution or integration.

## Facts

- Endpoint: POST https://x402-audit.agentdiet.dev/v1/workflows/code-release-security-gate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Activations on Zero: 0
- Provider: x402-audit.agentdiet.dev
- Website: https://x402-audit.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/x402-audit-agentdiet-dev-github-repository-security-license-auditor-3f92bcef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gp-oqy5KxqimZ7gJGL5dB

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 x402-audit-agentdiet-dev-github-repository-security-license-auditor-3f92bcef -d '<json body>'
```

Example prompt: Before I add langchain-ai/langgraph to my project, can you audit the GitHub repo for any license risks, security vulnerabilities, and check how actively it's being maintained?

## When to prefer this

Choose this endpoint when you need a pre-integration or pre-release security gate specifically for GitHub repositories — covering license compliance, dependency CVEs, and supply-chain risk in a single call. Prefer it over generic vulnerability scanners when you need combined license + maintenance + supply-chain context in one response, especially in automated CI/CD or agent-driven code review pipelines.

## Known failure modes

- Invalid or non-existent repository (owner/name format not found on GitHub) returns an error
- Private repositories that are inaccessible to the auditor return an access error
- GitHub API rate limiting may cause partial or failed results
- Repositories with no dependency manifest files may yield incomplete dependency analysis
- Payment failure via x402 protocol results in HTTP 402 response blocking execution

## 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://x402-audit.agentdiet.dev/v1/workflows/code-release-security-gate)

## Output

Returns a structured security and compliance report for the given GitHub repository, including: license type and risk classification, maintenance velocity indicators (commit frequency, last activity), repository popularity metrics (stars, forks), dependency vulnerability findings, and an overall supply-chain security assessment suitable for use as a release gate decision.

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