From c5aed8d3b27ff2bccac75e0e0a45d5bb5bff1151 Mon Sep 17 00:00:00 2001 From: rakeshjosh2003 <102702631+rakeshjosh2003@users.noreply.github.com> Date: Thu, 7 Aug 2025 14:07:47 +1000 Subject: [PATCH 1/2] Update GitHUb App sync error scenario in docs for GitHub enterprise cloud Update GitHUb App sync error scenario in docs for GitHub enterprise cloud --- docs/admin/code_hosts/github.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/admin/code_hosts/github.mdx b/docs/admin/code_hosts/github.mdx index caddd59ab..aefa2016b 100644 --- a/docs/admin/code_hosts/github.mdx +++ b/docs/admin/code_hosts/github.mdx @@ -160,6 +160,16 @@ To use a GitHub Enterprise App with Sourcegraph: 1. Create the Enterprise App in your GitHub Enterprise settings (see [GitHub's documentation](https://docs.github.com/en/enterprise-cloud@latest/admin/managing-your-enterprise-account/creating-github-apps-for-your-enterprise)) 2. Use the [**Add an existing GitHub App**](#adding-an-existing-github-app) option in Sourcegraph to connect it +If you get an error message similar to following error while adding a GitHub App connection : + +``` +"request to https://api.github.com/app/installations?page=1 returned status 403: Although you appear to have the correct authorization credentials, the `testsourcegraph` organization has an IP allow list enabled, and your IP address is not permitted to access this resource." + +``` + +It means i.p allowlist is enabled at organisation level and you need to add sourcegraph i.p addresseses to this allowlist for the app connection to work (see [GitHub's documentation](https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization#adding-an-allowed-ip-address)) + + ### Uninstalling an App You can uninstall a GitHub App from a namespace or remove it altogether at any time. From 41bd507fa7b6116bd147fe279b6223d5061b57de Mon Sep 17 00:00:00 2001 From: rakeshjosh2003 <102702631+rakeshjosh2003@users.noreply.github.com> Date: Thu, 7 Aug 2025 14:35:09 +1000 Subject: [PATCH 2/2] Update github app sync failure scenario Update github app sync failure scenario --- docs/admin/code_hosts/github.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/admin/code_hosts/github.mdx b/docs/admin/code_hosts/github.mdx index aefa2016b..2ce139fa6 100644 --- a/docs/admin/code_hosts/github.mdx +++ b/docs/admin/code_hosts/github.mdx @@ -167,7 +167,7 @@ If you get an error message similar to following error while adding a GitHub App ``` -It means i.p allowlist is enabled at organisation level and you need to add sourcegraph i.p addresseses to this allowlist for the app connection to work (see [GitHub's documentation](https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization#adding-an-allowed-ip-address)) + It means that the IP allowlist is enabled at the organisation level and you will need to add sourcegraph's IP addresseses to this allowlist in order for the app connection to work (see [GitHub's documentation](https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization#adding-an-allowed-ip-address)) ### Uninstalling an App