Skip to main content
Sourcebot can sync code from Gitea Cloud, and self-hosted. If you’re not familiar with Sourcebot connections, please read that overview first.

Examples

Authenticating with Gitea

In order to index private repositories, you’ll need to generate a Gitea access token. Generate a Gitea access token here. At minimum, you’ll need to select the read:repository scope. read:user and read:organization are required for the user and org fields of your config file: Gitea Access token creation Next, provide the access token via the token property, either as an environment variable or a secret:
  1. Add the token property to your connection config:
  1. Pass this environment variable each time you run Sourcebot:

Connecting to a custom Gitea

To connect to a custom Gitea deployment, provide the url property to your config:

Schema reference

schemas/v3/gitea.json