How to connect your GitHub account to Zenifra
To use GitHub repositories on Zenifra, you need to complete two steps: connect your GitHub account to the active Zenifra organization and install the Zenifra GitHub App on the GitHub personal account or organization that owns the repositories.
There are two connections. The owner's belongs to the active organization: anyone who has not connected their own GitHub uses the repositories it makes available. Each member who can create projects can also connect their own GitHub and, from then on, use only their own repositories in that organization, like a student in a class; see Members' personal GitHub. For Forgejo repositories, see Deploy from Forgejo.
Prerequisites
- An active Zenifra account
- Being the
ownerof the active organization to connect the organization's GitHub, or a member allowed to create projects (in the organization or in a team) to connect your personal GitHub - A GitHub account
- Permission to install apps on GitHub in the target account or organization
Step 1 — Link your GitHub account to Zenifra
- Sign in to the Zenifra console.
- Make sure the correct organization is selected and open Account in the sidebar.
- In the GitHub section, start the connection to your GitHub account.
- Authorize the link between GitHub and Zenifra.
This link identifies which GitHub user will be used by Zenifra. It does not grant repository access by itself. Repository access depends on installing the Zenifra GitHub App.
Step 2 — Install the Zenifra GitHub App
After linking the account, open the app installation page:
During installation, GitHub asks you to choose where the app will be installed and which repositories may be used by Zenifra.
App installation defines which accounts and which repositories Zenifra can see when creating or updating GitHub-based projects.
Step 3 — Choose personal account or organization
Personal account
Choose your personal account when the repositories you want to use belong to your GitHub user. This is the simplest flow for personal projects, tests, and individual applications.
Organization
Choose an organization when the repositories belong to a shared GitHub workspace. Depending on the organization's rules, app installation may require approval from an administrator before becoming available.
If you work with more than one organization, install the app separately in each one that should make repositories available to Zenifra.
Step 4 — Choose the repositories
During installation, GitHub usually offers two options:
- All repositories: automatically grants access to current and future repositories in that account or organization.
- Only selected repositories: grants access only to repositories chosen manually.
If you want to limit initial access, prefer manual selection. If the expected repository does not appear later in the Zenifra console, review the app installation and confirm it was included.
How to confirm the integration worked
After completing the installation:
- Return to the Zenifra console.
- Start the creation or editing flow of a GitHub-based project.
- Check whether the correct personal account or organization appears.
- Confirm whether the expected repository is available for selection.
If the account appears but a specific repository does not, the account link is working and the needed adjustment is probably in app installation or repository selection.
Troubleshooting
The repository does not appear on Zenifra
Check whether the Zenifra app was installed in the correct account and whether the repository was included in the installation. This is common when the installation used the selected repositories option.
The organization does not appear on the installation page
Confirm whether your GitHub user has permission to install apps in that organization. Some organizations also restrict installation to administrators.
The app was installed, but access is still missing
Some organizations require extra approval after the installation starts. In those cases, ask an administrator to review and complete the authorization.
I installed the app in the wrong account
Open the app installation page again and repeat the process, choosing the correct personal account or organization.
If you uninstall and install the app again, reconnect the repository on projects that used the previous installation; until then, they do not receive automatic updates. See GitHub event delivery.
The connection was not completed when returning from GitHub
The authorization can be used once, for up to 10 minutes, and can only be completed in the same browser where it started. If you switched browsers, took longer than that, blocked Zenifra cookies, or opened the return link twice, start the connection again from the console. The connection also requires an organization owner (owner).
Members' personal GitHub
Each person decides which GitHub they use in each organization:
- You connected your own GitHub in this organization: Zenifra uses only it for everything you do here (listing accounts and repositories, creating projects, connecting repositories and seeing branches). You only see and use your own repositories in this organization, and the organization GitHub no longer shows up for you.
- You did not connect yours: Zenifra uses the organization GitHub, connected by the owner, as always.
- Neither you nor the organization have GitHub: when you connect yours, it is tied only to you and only to this organization. When the owner connects, they keep creating and using the organization GitHub, as before.
An organization member (not the owner) who can create projects, in the organization or in a team, connects their own GitHub under Account, in the Your GitHub (optional) card, with Connect my GitHub. The steps are the same as above: authorize the account and install the Zenifra GitHub App on your personal account or GitHub organization.
- Until you connect yours, Account shows the organization GitHub card, which only the owner manages, and the Your GitHub (optional) card. Once you connect yours, only yours shows up.
- The connection is yours and only applies to this organization. Nobody else uses your GitHub, and it does not change the organization connection made by the owner.
- An API key uses the GitHub of whoever created the key, if that person connected their own; otherwise, the organization's.
- Later deploys, including the automatic ones on every push, use the GitHub App installed on the repository. Keep the app installed while the project exists.
- To disconnect, use Disconnect in the same section. You go back to the organization GitHub, and projects you already created stay as they are. If you leave the organization, the connection is removed.
- If the owner disconnects the organization GitHub, projects you created with your own GitHub stay connected.
Next steps
Last updated on
Account Settings
Manage your Zenifra account: name, password, 2FA, notifications, login history, invoice details, CNPJ representative, Git connections, and account deletion.
How to change a project image
Change the image of OCI-based projects on Zenifra, public or private (AWS ECR or token), and see how deploy modes trigger builds in Git-based projects.