Connect a private git repository as a documents source
- graal Agentic Platform
- Version 0.30 (actuelle)
- Open source · Apache 2.0
- Source : graalsystems/tranibor@v0.30.1
For an organisation administrator. Procedure connector.documents.git, version 1, reviewed 2026-10-16 against the vendor’s own pages. It applies to the connector type documents/git.
It ships with the platform. In the console it opens with How to set this up, beside the form that adds the connector and on the connector’s settings.
Addresses are written <api_url>, <public_url> and <org> here: the console shows the same text with your deployment’s own.
Before you start
Section intitulée « Before you start »- A private git repository whose documentation (Markdown by default) a knowledge base should read. A public repository needs no connector: a git source reads it directly.
- This is an organisation connector: an organisation administrator declares it once. The credential is pinned to its host: a source whose repository is on another host is refused, so a token is never sent elsewhere. Declare one connector per host.
At the forge
Section intitulée « At the forge »Token (simplest). GitHub: Settings, Developer settings, Fine-grained personal access tokens,
Generate new token. Pick only the repository and the repository permission Contents: Read-only.
Set an expiry and note it. The token is sent to git as HTTP Basic with the user name x-access-token; that
is what GitHub expects, and it has not been verified here against other forges, so test a GitLab or
Gitea host before relying on it.
GitHub App (no token to rotate). Create or reuse an App with the repository permission
Contents: Read-only, install it on the repository, and note its App ID, the installation id
(the number at the end of the installation’s address) and a generated private key. At each read the
platform mints a one-hour installation token limited to that repository and to contents: read.
Permissions
Section intitulée « Permissions »- Contents read on the one repository, nothing else. No write permission is needed or used.
- The credential travels to git in the environment, never on a command line, in an error message or in
.git/config.
In Tranibor
Section intitulée « In Tranibor »- Administration, Connectors, Declare: capability Documents, type Git over https.
host:github.com(the default) or your host.auth:token, then paste the token intoken. Orauth:github_app, thenapp_id, optionallyinstallation_id, and the App’s key inprivate_key. For GitHub Enterprise Server also setapi_url.- Knowledge, a base, Add source, kind Git: pick this connector, then the repository’s https
address, a
ref(a branch is followed, a commit is pinned) andpaths(globs; markdown by default).
Add the source and press Sync now. A repository whose files match paths adds documents; a
repository where no file matches is reported unreadable and deletes nothing.
When it fails
Section intitulée « When it fails »- A refusal saying the address is not on the connector’s host: the repository is on another host than
the connector’s
host, by design. Authentication failedor404from git: the token is wrong, expired or has no access to that repository; for an App, it is not installed on the repository.- “not an https address”: a git source is fetched over https only.
- Unreadable, nothing deleted: no file matches
paths, or therefdoes not exist. - A timeout: the git fetch is cut at 5 minutes, or the egress allowlist does not open the host.
| Field | What to put in it |
|---|---|
api_url |
the GitHub API address, https://api.github.com by default (change it for GitHub Enterprise Server) |
app_id |
the GitHub App’s id, for auth github_app |
auth |
token for an access token, github_app for a GitHub App |
host |
the git host the credential is for, github.com by default |
installation_id |
the App’s installation on the repository, optional |
private_key |
the App’s private key, typed once |
token |
a fine-grained access token with Contents: read, typed once |
Network egress
Section intitulée « Network egress »Hosts the platform must be allowed to reach:
github.comapi.github.com