GitHub
Baton GitHub Connector - Sync users, teams, repositories, and permissions from GitHub
Prerequisites
- A Mesh administrator account with permission to manage connectors.
orgs(optional) — Comma-separated list of GitHub organization names to sync (optional - syncs all accessible orgs if not specified)enterprises(optional) — Comma-separated list of GitHub enterprise slugs to sync enterprise roles (optional - requires enterprise admin)instance_url(optional) — GitHub instance URL for GitHub Enterprise Server (defaults to https://github.com for GitHub.com)sync_secrets(optional) — Whether to sync repository secrets (default: false)omit_archived_repositories(optional) — Skip syncing archived repositories (default: false)- Credentials for authentication: token (stored write-only).
Authentication
Method: Bearer token
Mesh authenticates with a token (personal access token, API token, or bot token).
| Field | Required | Secret | Description |
|---|---|---|---|
token | Yes | Yes (write-only) | GitHub Personal Access Token (PAT) - required for authentication |
Capabilities
| Capability | Supported | Notes |
|---|---|---|
| Identity & entitlement sync | ✓ | |
| Writeback / remediation | — | Read-only |
Data model
This information is not yet available from the connector schema.
Setup
- Gather the required value:
orgs. - Gather the required value:
enterprises. - Gather the required value:
instance_url. - Gather the required value:
sync_secrets. - Gather the required value:
omit_archived_repositories. - Create the required credentials in the source system: token.
- In Admin → Connectors, add the connector and enter its configuration.
- Save and run an initial collection.
Troubleshooting
This information is not yet available from the connector schema.