---
title: GitHub connector reference
description: "Reference for the managed GitHub connector in Lakeflow Connect: connection properties, connector options like repository\\_id\\_selections, and source tables."
canonical_url: https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/github-reference
---

# GitHub connector reference

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md).

This page contains reference documentation for the GitHub connector in Lakeflow Connect.

## <a id="connection-properties" />Connection properties

When you create the Unity Catalog connection, you must specify the following properties for OAuth U2M authentication. These values come from the GitHub OAuth App you configured in [Configure OAuth U2M for GitHub ingestion](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/github-source-setup.md).

| Property          | Required | Description                                                                                           |
| ----------------- | -------- | ----------------------------------------------------------------------------------------------------- |
| **Client ID**     | Yes      | The client ID from your GitHub OAuth App.                                                             |
| **Client secret** | Yes      | The client secret from your GitHub OAuth App. This value is displayed only once when you generate it. |

## <a id="connector-options" />Connector options

Set the following options when you configure the ingestion pipeline. For an example, see [Restrict ingestion to specific repositories](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/github-pipeline.md#restrict-to-specific-repositories).

### <a id="repository-selection" />Repository selection (`repository_id_selections`)

By default, the connector ingests data from all repositories in the organization. To restrict ingestion to specific repositories, set `repository_id_selections` to a list of GitHub repository IDs. These are the numeric, immutable repository IDs, which remain stable when a repository is renamed. When the list is empty, the connector ingests all repositories in the organization.

Repository selection applies to repository-scoped source tables: `repositories`, `repo_contents`, `commits`, `issues`, `issue_comments`, `pull_request_review_comments`, `tags`, `workflows`, `branches`, `collaborators`, `deployments`, `discussions`, `labels`, `milestones`, `pull_requests`, and `releases`. It has no effect on organization-scoped and nested tables. For the list of tables that ignore this option, see [Repository selection](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/github-limits.md#repository-selection).

## <a id="supported-source-tables" />Supported source tables

For information about which tables support incremental updates and which are fully refreshed on each pipeline run, see [Supported data](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/github-limits.md#supported-data).

### <a id="repository-contents" />Repository contents (`repo_contents` table)

The `repo_contents` table ingests all entries in each repository's default branch, including files, directories, submodules, and symbolic links. The primary key is (`repository_id`, `branch_name`, `path`). The `type` column identifies each entry as a `blob` (file), `tree` (directory), or `commit` (submodule). Symbolic links are `blob` entries with a `mode` of `120000`. Only file (`blob`) entries populate the `content` column, which holds the decoded text content. When a file is deleted from the source repository, its row is removed from the table (hard delete). For limitations, see [Repository contents](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/github-limits.md#repository-contents).
