Skip to content

Security: Nodifferentiable/agy-github

Security

SECURITY.md

Security Policy

Supported Versions

Version Supported
main / 0.1.x ✅

Security Architecture

agy-github is designed to enable full GitHub automation—including under Antigravity's Turbo mode—without storing plaintext tokens or allowing silent destructive mutations:

  • Zero runtime dependencies: Pure Node.js >=20 ESM scripts using only node:* built-in modules (package.json has zero dependencies, eliminating transitive node_modules supply-chain risk).
  • Zero plaintext tokens on disk: Credentials are obtained via browser OAuth in GitHub CLI (gh auth login --web), stored in your OS credential store (Windows Credential Manager / macOS Keychain / Linux keyring), and read in memory (gh auth token, 60s cache TTL) solely to authorize upstream GitHub requests.
  • 4-tier PreToolUse guardrail:
    • Tier 0–1: Safe reads and feature-branch collaboration pass through with explicit {"decision":"allow"}.
    • Tier 2 (force_ask): Forces native user confirmation—even under Turbo mode—for repo deletion/archive/rename/transfer, visibility changes (private -> public), force pushes, ref deletions, direct writes to protected branches (main/master/prod/production/release), PR merges, Secrets/Keys/Webhooks/Rulesets/Collaborators changes, and non-draft Releases.
    • Tier 3 (deny): Hard-blocks terminal commands attempting to print gh auth token, pass --show-token, read hosts.yml / mcp_oauth_tokens.json, or echo GH_TOKEN / GITHUB_TOKEN / AGY_GITHUB_TOKEN.
  • Host allowlist & UTF-8 bounding: github_api restricts REST endpoints strictly to api.github.com (unless explicitly overridden for testing via AGY_GITHUB_API_URL) and bounds oversized payloads at a UTF-8 safe byte boundary (default 64 KB).

2-Minute Independent Audit

  1. Inspect network & process boundaries:
    rg "fetch\(|https?://|execFileSync|spawn" scripts/
    Confirm network calls target only api.githubcopilot.com/mcp/, api.github.com, and local localhost Antigravity Language Server RPC in scripts/install.mjs.
  2. Run full local test suite:
    npm test

Reporting a Vulnerability

Please do not open a public GitHub issue for suspected security vulnerabilities.

Instead, report vulnerabilities privately via GitHub Security Advisories:

There aren't any published security advisories