# AgentDiet GitHub Repository Security Auditor

> AgentDiet GitHub Repository Security Auditor is a paid API for AI agents from agentdiet.dev, paid per call via x402 or MPP, $0.01/call, status unknown (last checked 2026-10-20).

Audits any GitHub repository for license risk, maintenance velocity, stars/forks, dependency health, and supply-chain security before integrating or executing code.

## Facts

- Endpoint: GET https://agentdiet.dev/v1/github-scanner?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-github-repository-security-auditor-261e0c73
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xpNvfllCgqa3tS1JdZgKA

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 agentdiet-github-repository-security-auditor-261e0c73
```

Example prompt: Before I add it as a dependency, can you audit the GitHub repo 'pallets/flask' for license risks, how actively it's maintained, and any supply-chain security concerns?

## When to prefer this

Choose this endpoint when an AI agent needs to programmatically vet a GitHub repository before integrating a dependency, executing third-party code, or making an open-source compliance decision. It's especially valuable in automated coding workflows, CI/CD pipelines, or agent-driven dependency management where a quick pre-flight security and license check is needed without manual inspection.

## Known failure modes

- Repository not found or is private — returns error indicating repo is inaccessible
- Invalid or malformed repository identifier — returns validation error
- GitHub API rate limiting — may return partial data or timeout
- Repository has no license file — license risk flagged as unknown
- Network timeout reaching GitHub — returns service 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://agentdiet.dev/v1/github-scanner)

## Output

Returns a structured security report covering: license type and commercial risk level, maintenance velocity (commit frequency, last commit date), popularity signals (stars, forks), dependency vulnerability summary, and overall supply-chain security assessment for the specified GitHub repository.

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