Visit https://github.com/settings/tokens/new to generate a new "classic" token.
Select the "Repo" checkbox to enable "Full control of private repositories", then click "Generate Token".
Save your resulting personal access token for later use
Visit https://github.com/settings/apps/new to register a new GitHub App.
- Enter "rhdh-sandbox" into the GitHub App name input.
- Enter your rhdh application route url in the Homepage URL input.
- In the Callback URL input, enter your rhdh application url plus "/api/auth/github/handler/frame"
- Deactivate webhooks
- Click on the "Create GitHub App" button at the bottom of the page
Note the resulting "Client ID", then click on the "Generate New Client Secret" button.
- Return to your Sandbox environment and select
ConfigMaps
from the side nav menu or from the Search interface - Select
app-config-rhdh
to open your backstage config - Select the YAML tab
- Update the configuration as follows:
data:
app-config-rhdh.yaml: |
app:
title: Red Hat Developer Hub
baseUrl: ${RHDH_HTTPS_ROUTE_URL}
integrations:
github:
- host: github.com
token: ${GITHUB_USER_ACCESS_TOKEN}
auth:
allowGuestAccess: true
environment: development
providers:
github:
development:
clientId: ${GITHUB_APP_CLIENT_ID}
clientSecret: ${GITHUB_APP_CLIENT_SECRET}
enabled:
github: true