You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do NOT simply use the first installation, but instead use the one, which matches the GH_ORG environment setting.
Error output, if available
DEBUG (github): GitHub request: GET https://api.github.com/repos/<private-account>/.github/contents/safe-settings%2Fsettings.yml - 404
ERROR (probot): Error getting settings HttpError: Not Found
Unexpected error during full sync: TypeError: Cannot read properties of undefined (reading 'data')
Context
Are you using the hosted instance of probot/settings or running your own?
Problem Description
Running as GHA, with multiple apps being installed (in different orgs), but not all have the same ADMIN_REPO incl. the settings, let the app fail.
What is actually happening
We had a scenario, where one app was installed in multiple different orgs (one enterprise account and two personal accounts). When the app is now executed as GHA, it is checking for its installations and always just uses the first occurrence, when there are more than one.
What is the expected behavior
Do NOT simply use the first installation, but instead use the one, which matches the GH_ORG environment setting.
Error output, if available
Context
Are you using the hosted instance of probot/settings or running your own?
running your own as described in https://github.com/github/safe-settings/blob/main-enterprise/docs/github-action.md
If running your own instance, are you using it with github.com or GitHub Enterprise?
on github.com
Version of probot/settings
2.1.16
The text was updated successfully, but these errors were encountered: