| Version | Supported |
|---|---|
main / 0.1.x |
✅ |
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
>=20ESM scripts using onlynode:*built-in modules (package.jsonhas zerodependencies, eliminating transitivenode_modulessupply-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
PreToolUseguardrail:- Tier 0–1: Safe reads and feature-branch collaboration pass through with explicit
{"decision":"allow"}. - Tier 2 (
force_ask): Forces native user confirmation—even underTurbomode—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 printgh auth token, pass--show-token, readhosts.yml/mcp_oauth_tokens.json, or echoGH_TOKEN/GITHUB_TOKEN/AGY_GITHUB_TOKEN.
- Tier 0–1: Safe reads and feature-branch collaboration pass through with explicit
- Host allowlist & UTF-8 bounding:
github_apirestricts REST endpoints strictly toapi.github.com(unless explicitly overridden for testing viaAGY_GITHUB_API_URL) and bounds oversized payloads at a UTF-8 safe byte boundary (default 64 KB).
- Inspect network & process boundaries:
Confirm network calls target only
rg "fetch\(|https?://|execFileSync|spawn" scripts/api.githubcopilot.com/mcp/,api.github.com, and locallocalhostAntigravity Language Server RPC inscripts/install.mjs. - Run full local test suite:
npm test
Please do not open a public GitHub issue for suspected security vulnerabilities.
Instead, report vulnerabilities privately via GitHub Security Advisories: