# GitHub Repository Security & License Auditor

> GitHub Repository Security & License Auditor is a paid API for AI agents from whale-momentum.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, stars/forks metrics, and supply-chain security signals before integrating or executing its code.

## Facts

- Endpoint: POST https://whale-momentum.agentdiet.dev/v1/secret-leak-scan?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Provider: whale-momentum.agentdiet.dev
- Website: https://whale-momentum.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/whale-momentum-agentdiet-dev-github-repository-security-license-auditor-dab2318c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7W-LN1xyKcqftIBCmknaS

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 whale-momentum-agentdiet-dev-github-repository-security-license-auditor-dab2318c -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a pre-integration security and compliance check on a GitHub repository — especially before adding a new dependency, auditing open source license obligations for legal compliance, or assessing the supply-chain risk of third-party code. Prefer this over generic code search when you specifically need license risk classification, maintenance health signals, and supply-chain security analysis in a single call.

## Known failure modes

- Invalid or non-existent repository (owner/name format wrong or repo not found)
- Private repository not accessible via public GitHub API
- GitHub API rate limiting causing incomplete scan
- Repository has no detectable license file
- Upstream GitHub API timeout causing delayed or empty response
- Payment failure via x402 protocol blocking request

## 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://whale-momentum.agentdiet.dev/v1/secret-leak-scan)

## Output

Returns a structured audit report for the given GitHub repository including license type and risk classification, maintenance velocity indicators (commit frequency, last commit date), repository popularity metrics (stars, forks), supply-chain security signals, and dependency risk flags.

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