Connect GitHub
Authorize the LeenOps GitHub App and select the repositories assistants may use.
LeenOps connects through its GitHub App. You authorize the account or organization, choose which repositories the app can see, and then explicitly enable repositories for LeenOps assistants.
Before you start
- Sign in to the GitHub account that owns the repositories.
- For an organization, make sure you are allowed to install GitHub Apps. GitHub may ask an organization owner to approve the installation.
- In LeenOps, use an internal administrator account. The current repository-management endpoints are restricted to internal administrators.
Current access limitation
The GitHub tab is visible in Settings, but loading and changing repository access currently requires the LeenOps internal-admin role. A normal workspace administrator may see an authorization error. Contact LeenOps support if the tab is unavailable or does not load.
Connect the account
- Open the LeenOps console.
- Select Settings in the workspace navigation.
- Open the GitHub tab.
- Select Connect GitHub.
- On GitHub, install or authorize the LeenOps GitHub App.
- Choose All repositories or select the specific repositories LeenOps may access.
- Return to LeenOps. The GitHub card should show the connected account with a Connected badge.
Enable repositories for assistants
The GitHub App installation controls what GitHub exposes to LeenOps. The LeenOps repository list controls what assistants may actively use.
- In Settings → GitHub, review the repository list.
- Enable only the repositories needed for your workflows.
- Use Refresh repositories after changing access on GitHub.
- Run a narrow read-only task, such as listing the repository structure, before enabling write workflows.
Console and terminal remotes are different
Connecting GitHub in LeenOps does not add a Git remote to a local folder. For a local clone, use:
git remote -v
git remote add origin https://github.com/OWNER/REPOSITORY.git
git fetch originIf origin already exists, update it instead:
git remote set-url origin https://github.com/OWNER/REPOSITORY.gitUse an SSH URL only after your machine has a working GitHub SSH key:
git remote set-url origin git@github.com:OWNER/REPOSITORY.gitVerify the connection
- The Settings card shows the expected GitHub account or organization.
- The repository list contains only repositories approved in GitHub.
- Enabled repositories are shown as connected.
- A read-only assistant test can access the intended repository and no others.
Common problems
| Symptom | What to check |
|---|---|
| GitHub asks for approval | An organization owner may need to approve the GitHub App. |
| The GitHub tab returns an authorization error | The current API requires an internal administrator. |
| A repository is missing | Update the GitHub App installation, then refresh repositories in LeenOps. |
| The wrong account appears | Disconnect the installation and repeat the flow in the correct GitHub session. |
Local git push still fails | Check the local remote and your Git credentials; the console connection does not configure local Git. |
For access help, follow Open a support request.