IntegrationsContainer Registry Integrations
GitHub Container Registry Integration
Learn how to integrate GitHub Container Registry with Cokpit
GitHub Container Registry (GHCR) Credentials
Step 1: Create Personal Access Token
-
Go to GitHub Settings → Developer settings → Personal access tokens.
-
Click Generate new token.
-
Give your token a description.
-
Select the required permissions:
read:packagesto download container imageswrite:packagesto upload container imagesdelete:packagesto delete container images
-
Click Generate token.
-
Copy your token immediately.
💡 Tip: Save your access token in a secure location. You won't be able to see it again!
Step 2: Add GHCR Credentials to Cokpit
- Open Cokpit and go to Integrations → Container Registry → GitHub Container Registry.
- Click Add secret.
- Fill in the required fields:
- Enter a unique Secret Name
- Enter the Registry URL (usually
ghcr.io) - Enter your GitHub Username
- Paste your Personal Access Token
- Click Submit.
Security Best Practices
- Create tokens with minimal required permissions
- Use different tokens for different applications
- Regularly rotate access tokens
- Enable two-factor authentication on GitHub
- Monitor token usage in security logs