GitHub Integration Troubleshooting
This guide covers common issues and solutions for GitHub integration with Spotify Portal for Backstage, including both GitHub App and Personal Access Token (PAT) authentication methods.
GitHub App Issues
Installing and Configuring GitHub App
If you're setting up a GitHub App for the first time or need to reinstall it:
- Ensure you have admin access to your GitHub organization
- Follow the GitHub App setup process in the Getting Started guide.
- Verify you've selected all the required organizations during installation
- Confirm the app is installed on all repositories you want to access in Portal

Managing GitHub App Permissions
If you're experiencing permission-related issues with your GitHub App:
- Check that your GitHub App has all the required permissions for repository access
- Verify the organization permissions are set correctly to read members
- If permissions were recently updated, you may need to reinstall the app for changes to take effect

Expired Client Secret or Private Key
GitHub App credentials may need to be regenerated periodically for security reasons. If you're experiencing authentication issues:
- Visit your GitHub App settings page in your organization
- Check if your Client Secret or Private Key needs to be regenerated
- For Client Secret: Click "Generate a new client secret"
- For Private Key: Click "Generate a private key"
- Update the corresponding credentials in Portal's Config Manager


Personal Access Token (PAT) Issues
Replacing GitHub expired personal access token
When your GitHub personal access token expires, you'll need to generate a new one and update it in Portal. Follow these steps:
- Visit your GitHub Personal Access Tokens settings
- Find your expired token in the list
- Click "Regenerate token" to create a new token with the same permissions

After regenerating your token:
- Set an appropriate expiration date for your security needs
- Click "Regenerate token" to confirm
- Copy your new token immediately (GitHub will only show it once)
- In Spotify Portal, navigate to Config Manager at
<baseURL>/config-manager/app#root~1.integrations~1.github__title
- Paste your new token in the "token" field
- Click "Save Changes" to update your GitHub integration

Insufficient PAT Permissions
If you're experiencing permission issues with your GitHub PAT:
- Verify your PAT has all the required scopes
- Check if your PAT has expired and needs to be regenerated
- Ensure the GitHub user associated with the PAT has appropriate access to the repositories
Organization Access Issues
Missing Teams or Organizations
If you can't see certain GitHub teams or organizations in Portal:
- Verify the GitHub App is installed on those organizations or your PAT has access to them
- Check that the organizations are included in your Portal configuration
- Ensure the GitHub App or PAT has the necessary permissions to read organization data
- Try refreshing the catalog to trigger a new sync with GitHub
Rate Limiting
If you're experiencing rate limiting issues with GitHub API:
- Consider switching from PAT to GitHub App authentication (which has higher rate limits)
- Optimize your catalog refresh intervals to reduce API calls
- See the Rate Limiting guide for more detailed solutions
Migrating from PAT to GitHub App
For improved security and higher rate limits, we recommend migrating from Personal Access Tokens to GitHub Apps.
You can find more information about GitHub Apps in the Getting Started guide.