Private repositories are in beta. They are read by the same client as public ones, with only
the token changed, but this has not yet been run against a real private repository. Tell your
MITHUNAI contact if a sync does not read what you expect.
What you need
- A GitHub account that can read the repository.
- The owner or admin role in your MITHUNAI organisation.
1. Create the token in GitHub
- In GitHub, click your profile picture, then Settings.
- In the left sidebar, click Developer settings, then under Personal access tokens, Fine-grained tokens.
-
Click Generate new token and give it a name, such as
MITHUNAI. - Choose an Expiration. Note the date: you will replace the token before then.
- Under Resource owner, choose the account or organisation that owns the repository. If it belongs to an organisation, the organisation may need to approve the token.
- Under Repository access, choose Only select repositories and pick the repositories you will connect.
-
Under Permissions → Repository permissions, set to Read-only only what you will read:
- Contents, for the repository’s files.
- Issues, for issues.
- Pull requests, for pull requests.
- Discussions, for discussions.
- Click Generate token and copy it. GitHub shows it only once.
2. Connect the repository
- In the console, open Sources and choose Connect source, then GitHub.
- Enter the repository as
owner/repo, and choose what to read: files, issues, pull requests or discussions. - Tick This repository is private.
- If you have no GitHub connection yet, the form to add one opens. Enter a Connection name of your own and paste the Token, then choose Save connection. Otherwise choose the connection from the list.
- Choose Connect source.