-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scale-up lambda fails with error - HttpError: Integration not found in ghe.com #4364
Comments
I have no option to test the module on ghe.com. The module should work on GHES, but also that version I cannot test. You could try to configure the module with GHES. If I am coorect you can set the API endpoint in that case. Would be great to get people on this OS module that can support and test those cases. |
In GHES the API endpoint is |
Had a quick look in the code, but maybe you can just pass the url in the ghes parameter: terraform-aws-github-runner/lambdas/functions/control-plane/src/github/auth.ts Lines 20 to 28 in 6a4a0e0
|
I think the ghesApiUrl is derived from the ghes-url param here - terraform-aws-github-runner/lambdas/functions/control-plane/src/scale-runners/scale-up.ts Line 354 in 6a4a0e0
|
Yes I think you are right, so it is hard-coded :( (partially). I think it would be better to make it in the lambda more generic. In case we could get it backwards compatible via terraform that would be nice. But would certainly avoid having more cased in the code, should work if we just inject the full url. Would be great if uyou can propose a PR. You can run a quick test, by just chainging the the Lambda code (even hardcoded). And run |
Hello, I have raised a PR with changes here - #4367. Please have a look |
Hello Team,
I am attempting to implement the multi-runner module in a our GitHub Enterprise Cloud with data residency instance hosted on
companyname.ghe.com
. With this data residency feature of Github, the API URL has changed fromapi.github.com
toapi.companyname.ghe.com
.In this case the creatAuthAppfunction in scale-up.ts fails, as the API endpoint is not set .Hence the scale-up lambda function is failing with the following error: "
message": "Ignoring error: HttpError: Integration not found - https://docs.github.com/rest.
`Could you confirm if this module is currently supported in the GitHub with ghe.com domain?It works fine in our in Enterprise and public Cloud GH instances.
The text was updated successfully, but these errors were encountered: