Developer workflow connector

GitHub connector for governed AI agent access

Connect GitHub with a fine-grained personal access token and optional repository or installation scoping.

API

Direct answer

OneQuery supports GitHub for governed agent access.

Teams use the GitHub connector to give AI agents bounded source API calls for endpoint-specific context while OneQuery keeps credentials centralized, limits access to approved sources, and preserves audit logs for review.

Agent workflow

What this connector enables

GitHub becomes an approved OneQuery source instead of a secret copied into an agent prompt, shell session, or model tool. The agent receives a governed access path, and the source credentials stay behind OneQuery.

  • Use bounded source API calls for endpoint-specific context for developer workflow context.
  • Keep GitHub credentials centralized and out of agent runtimes.
  • Review agent access through OneQuery audit history instead of reconstructing direct service usage.

Setup checklist

Prepare the GitHub connection

Use github credentials and connect the source through the Dashboard and CLI. Keep credentials scoped to the data the agent is allowed to read.

  1. Create a fine-grained personal access token for the correct resource owner.
  2. Grant read-only repository permissions for Contents, Issues, Pull requests, and Metadata.
  3. Copy the token into `credentials.accessToken`; optionally include `installationId` and `repositories`.

FAQ

GitHub connector questions

What is the OneQuery GitHub connector?

The OneQuery GitHub connector makes developer workflow context from GitHub available to AI agents through bounded source API calls for endpoint-specific context. Connect GitHub with a fine-grained personal access token and optional repository or installation scoping.

How do AI agents access GitHub through OneQuery?

Agents call OneQuery instead of receiving raw GitHub credentials. OneQuery keeps credentials centralized, applies source boundaries, and records access in audit logs while exposing bounded source API calls for endpoint-specific context.

How do I set up the GitHub connector?

Prepare github credentials and connect GitHub from the OneQuery dashboard or CLI. Start with this setup step: Create a fine-grained personal access token for the correct resource owner.