# GitHub Repository Security & License Risk Auditor

> GitHub Repository Security & License Risk 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-21).

Scans a GitHub repository for license risk, maintenance velocity, stars/forks metrics, and supply-chain security including secret leaks

## Facts

- Endpoint: GET https://onchain-risk.agentdiet.dev/v1/secret-leak-scan?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-21
- 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-security-license-risk-cb783940
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EjIadM4wIvc8lHBceLy1B

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-security-license-risk-cb783940
```

Example prompt: Can you audit the langchain-ai/langgraph GitHub repo for me — check for any license risks, exposed secrets, and whether it's actively maintained before I add it as a dependency?

## When to prefer this

Choose this endpoint when you need a quick, pre-integration security audit of any GitHub repository — especially for license compliance, secret leak detection, and supply-chain risk assessment before adding a new open source dependency to a project. It is purpose-built for agentic coding workflows where automated due diligence on third-party code is required.

## Known failure modes

- Repository not found or private: returns error if the repo doesn't exist or is inaccessible
- Invalid repo format: returns error if owner/name format is malformed or missing
- GitHub API rate limiting: may fail or return partial data under heavy load
- Payment required: HTTP 402 returned if x402 payment is not provided
- Timeout: large repositories may take longer to scan and could time out

## 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/secret-leak-scan)

## Output

Returns a structured report on the GitHub repository including license type and risk level, maintenance velocity indicators, stars and forks counts, supply-chain security findings, and any detected secret or credential leaks in the codebase.

## 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-security-license-risk-cb783940/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)
