feedback
feedback copied to clipboard
Bug/Documentation Issue in Self-Hosted Setup + github.com
Describe the bug Admins not detected for self-hosted setup with github
Environment (please complete the following information):
- Browser: Chrome
- System: local + github.com (not GitHub Enterprise!)
To Reproduce Steps to reproduce the behavior:
- Follow steps for self-hosted setup with docker compose and GitHub App
- Set
setup:
admins:
- service: github
username: "serjx86"
docker compose up- Observe
POST http://localhost:8080/graphql/gh
{
"query": "\n query HasAdmins {\n config {\n hasAdmins\n }\n }\n ",
"variables": {}
}
Expected behavior Detect admins correctly.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
GitHub app setup seems to be correct, since I get redirected to GitHub OAuth login and the callback is called correctly. hasAdmins being False in the request above seems to be fouling everything up.
I looked at the source, and it seems the RUN_ENV has to be set to ENTERPRISE for this to work correctly. Alas, setting
api:
image: codecov/self-hosted-api:latest-stable
environment:
- RUN_ENV=ENTERPRISE
had no effect.