#2 Private Github Apps - 1 Backstage

8 messages · Page 1 of 1 (latest)

robust patrol
#

Hi All, I have 2 private Github Apps linked to 2 separate Github orgs. Is it possible for Backstage to read from both Apps? If so, how?

junior flare
robust patrol
#

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?

junior flare
#

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

robust patrol
#

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?

robust patrol
#

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.

junior flare
#

That does look like an error that github would produce

robust patrol
#

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.