#2 Private Github Apps - 1 Backstage
8 messages · Page 1 of 1 (latest)
You would add two entries under integrations.github as described here https://backstage.io/docs/integrations/github/github-apps/
Thanks for the reply Brian.
So here is what I have configured.
integrations:
github:
- host: github.com
apps:
$include: ./services/github-apps/github1.yaml
In github1.yaml I have it structured as
- appId: XXX
clientId: XXXX
clientSecret: XXX
webhookSecret: XXX
privateKey: XXX - appId: XXX
clientId: XXXX
clientSecret: XXX
webhookSecret: XXX
privateKey: XXX
BUT am getting the bellow error
catalog error github-provider:xxx refresh failed, HttpError: API rate limit exceeded for xxxx. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) API rate limit exceeded for xxxxx. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
Any ideas?
Thats sort an unrelated error. GitHub only allows you to hit their apis 5000 times an hour. The api will respond with that error on the 5001st api call and all subsequent calls. You can increase this limit by being a paying customer of github
Ok, thank you I will look into the rate limits.
Last question, the structure I stated above, that is the correct way to add multiple GitHub apps?
Could the error I indicated above be a fales error? I have verified that both of the Github apps have not exceed any rate limit by using the rate_limit endpoint.
That does look like an error that github would produce
I found the issue, during our dev testing, the app was loading with 2 app config files. Once I have removed one, the github app was able to authenticate and search appropriately.