Overview
Collate 1.12 introduces Git Sink, a workflow capability that automatically synchronizes metadata changes in Collate to a Git repository. Many organizations are adopting a metadata as code approach. Just like application code, metadata benefits from version control, review workflows, and historical tracking. Git Sink captures metadata updates in Collate and commits them to GitHub. Teams can maintain version history, review governance changes, and integrate metadata management with existing engineering workflows. Collate remains the main interface for managing metadata while Git stores the version history.Note: Git Sink is a Beta feature.
Why Git Sink Matters
Metadata changes frequently as data platforms evolve. Teams document tables, add tags, create test cases, and update governance classifications. Without version control, these updates are hard to track. Git Sink helps organizations:- Track metadata history
- Review governance updates through Git workflows
- Integrate metadata with DevOps processes
- Manage metadata using version control
How Git Sink Works
Git Sink uses the Collate workflow engine. A workflow listens for metadata events and writes those changes to a Git repository. Examples of events include:- Creating a test case
- Updating a table description
- Adding tags or tiers
- Updating glossary assignments
Creating a Git Sink Workflow
Follow these steps to create a workflow that captures metadata events and syncs them to Git.Note:
Limitation: Currently, Git Sink workflows only support Start and End nodes. You cannot add additional intermediate nodes beyond the Git Sink node itself.
-
From the left navigation bar, navigate to Governance > Workflows. Click Create Workflow.

-
Enter a Workflow Name and Description, then click Save and Next.

-
Drag the Start node onto the canvas and fill in the following fields:
- Data Asset: Select the entity types the workflow monitors (for example,
Table). - Data Asset Filter (Optional): Add filters to narrow which assets the workflow acts on.
- Trigger Type: Choose Event Based to trigger when an asset changes, or Periodic Batch to run on a schedule.

- Data Asset: Select the entity types the workflow monitors (for example,
- Click Save.
-
Drag the Git Sink node onto the canvas and connect it to the Start node. Enter the GitHub connection details — for full configuration options, see GitHub Configuration below.


- Click Save.
-
Drag an End node onto the canvas and connect it to the Git Sink node.

-
Click Save, then toggle the workflow to Active.

GitHub Configuration
Configure the connection to your GitHub repository in the Git Sink node.
- Display Name (required): The name of the node.
- Description: A description of the node.
-
Repository URL (required): The URL of the GitHub repository where Collate stores metadata files, for example
https://github.com/org/repo.git. -
Branch: The branch Collate commits to. The default is
main. -
Base Path: The folder in the repository where Collate writes the metadata files. The default is
metadata. - Access Token (required): A GitHub personal access token. Create one in GitHub Developer Settings and use it for authentication.
-
Conflict Resolution: Choose how Collate handles conflicts:
- Overwrite External Changes
- Preserve External Changes
- Fail on Conflict
Most organizations treat Collate as the primary metadata source.
-
Commit Message Template: The message for each commit. The default is
Sync {entityType}: {entityName}. - Signing Private Key: The ASCII-armored PGP private key of the GitHub account that the commits are signed as. The key’s email must be a verified email on that account, and the account owner must upload the public key to GitHub. Leave this field empty to commit through the GitHub API.
- Passphrase: The passphrase of the signing key, if the key has one.
- Allow Unsigned Fast Push: Without a signing key, select this option to push commits with git instead of the GitHub API. This is faster, but the commits are not marked as Verified.

Commit Modes
The Git Sink node writes to GitHub in one of two modes:- API mode (default): Collate commits through the GitHub API. Existing workflows use this mode.
- Fast push mode: Collate builds commits locally and pushes them to the branch as a fast-forward. Fast push is faster on large syncs. Collate uses it only when you set a Signing Private Key or select Allow Unsigned Fast Push.
- You uploaded the matching public key to the GitHub account.
- The email on the key is verified on that account.
Note: An administrator can force a mode with the
GIT_SINK_TRANSPORT system property or environment variable. Set it to auto, api, or push.Repository Structure
Collate stores synced metadata in GitHub as YAML files. The structure reflects the hierarchy of the data platform. Example- Fully qualified name
- Columns
- Tags and classifications
- Descriptions
- Timestamps and user information
What Is Not Exported
Git Sink does not write the following to the repository, so credentials and row-level data stay out of Git:- Service connection details: The
connectionblock of a service, including its host, user, database, and secrets. - Table sample data: The
sampleDataof a table. - Queries: Query entities are skipped. A Git Sink workflow cannot select Query as a data asset, and All leaves it out.
Large and Periodic Syncs
For a Periodic Batch trigger, Git Sink processes entities in batches and commits them in groups:- Batch size: One run handles at most 5,000 entities at a time, so a server crash or a stop request affects at most one chunk.
- Commit size: Commits start at 100 files and grow up to 1,000 files. Collate reduces the size only when GitHub fails or times out a request, not when a request is slow.
- Unchanged content: Collate skips files whose content has not changed instead of creating empty commits.
- Conditions and actions: When a periodic workflow has a Git Sink, the workflow runs once per batch. Check Condition nodes evaluate every entity in the batch and pass on only the matching ones. Action nodes, such as Set Action, apply to every entity in the batch.
Note: Collate rejects a Git Sink workflow when you save it if it uses a periodic trigger together with nodes that cannot run per batch, such as approval tasks, run app, ingestion, or data completeness nodes.
Retries and Failures
- Transient errors: Collate retries transient GitHub API errors, including 500 and 503 responses and connection resets. Before it retries a commit that might have landed, it checks the commit history for the run token it adds to the commit body, which avoids duplicate commits. This check is not an exactly-once guarantee: if the history lookup fails or the commit is not yet visible, a retry can produce a duplicate.
- Large commits: When GitHub rejects a commit as too large, Collate splits it in half and retries.
- Run status: When a periodic batch run fails and no failure branch handles it, the workflow instance ends with the status Failure, not Finished.
Terminate a Stuck Run
If a server stops during a run, the workflow instance can stay in the Running status. An administrator can end it with the terminate endpoint:- The endpoint requires administrator permissions.
- If the instance is not executing a job, Collate clears it and its open workflow tasks right away.
- If a job is executing, the endpoint returns
202. The Git Sink stops after its current sub-batch, and the instance ends as Failure with the messageTerminated by admin: <reason>.
Example Workflow
- A Git Sink workflow is active.
- A user updates a table in Collate.
- The update triggers a metadata event.
- The workflow commits the change to GitHub.
- The repository stores the updated metadata in YAML format.