GitHub
Overview
The GitHub application connects your GitHub account to Apolo using a personal access token (PAT). Once installed, it exposes two integrations that other applications can consume:
GitHub Container Registry Auth — credentials for pulling container images from the GitHub Container Registry (
ghcr.io, or your GitHub Enterprise Server registry host). Wire it into Service Deployment or other apps to run images from your private GitHub repositories without manually managing docker config secrets.GitHub Auth — generic GitHub API credentials (username, token and API URL) for applications that need to talk to the GitHub API.
The application is deployment-less: it does not run any workloads and becomes healthy immediately after installation. Your token is stored as an Apolo secret and is only referenced — never copied — by the integrations.
Prerequisites
A GitHub personal access token (classic). For pulling container images it needs the
read:packagesscope — see About permissions for GitHub Packages.The token stored as an Apolo secret in the same cluster, organization and project where the consuming applications will be installed, e.g.:
apolo secret add github-pat <your-token>Installing
Installing with Apolo Console
Access the Apolo Console, go to the Apps section and select the GitHub application.

2. Configure the two credential groups:
GitHub Auth
Username — the GitHub account the token belongs to.
GitHub Personal Access Token — pick the Apolo secret holding the PAT.
API URL — leave the default
https://api.github.com, or set your GitHub Enterprise Server API endpoint.
GitHub Container Registry Auth
Registry Host — leave the default
ghcr.iofor github.com; for GitHub Enterprise Server usecontainers.HOSTNAME.Username and GitHub Personal Access Token — same as above.


Set the application display name and install. The app becomes healthy right away — there is nothing to deploy.

Installing with Apolo CLI
Save the configuration to a YAML file:
and install it:
Usage
After installation the app exposes its integrations as outputs:
$.image_registry_auth
GithubImageRegistryAuth
Image pull credentials for ghcr.io / GHES registries
$.auth
GithubAuth
GitHub API credentials
Consuming applications reference them either through the integration picker in the Console, or in a CLI install file via an app instance reference:
See Service Deployment for a complete example.
Notes
The PAT secret is resolved in the consuming application's cluster, organization and project — install the GitHub app and its consumers in the same project.
Registry credentials are rendered into the deployment at install time; after rotating the token in the Apolo secret, redeploy the consuming applications to pick up the new value.
References
Last updated
Was this helpful?