Skip to content

Commit 1671358

Browse files
BeFunesclaude
andcommitted
Revise GHES GitHub App configuration guide
- Add overview section with context on App creation and ownership - Move verification instructions higher in the page - Add event subscriptions and permissions warning screenshots - Add note about other permissions, convert explanations to bullet lists - Remove GHES acronym from file name, nav, and content - Apply style guide fixes (active voice, sentence length, terminology) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 366f4ff commit 1671358

File tree

5 files changed

+138
-161
lines changed

5 files changed

+138
-161
lines changed
280 KB
Loading
94.2 KB
Loading

docs/guides/modules/ROOT/nav.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
** VCS integration
272272
*** xref:integration:version-control-system-integration-overview.adoc[VCS integration overview]
273273
*** xref:guides:integration:using-the-circleci-github-app-in-an-oauth-org.adoc[Using the CircleCI GitHub App in an OAuth org]
274-
*** xref:integration:ghes-github-app-configuration.adoc[Configure the GitHub App for GHES]
274+
*** xref:integration:github-app-configuration-for-github-enterprise-server.adoc[GitHub App configuration for GitHub Enterprise Server]
275275
*** xref:integration:oss.adoc[Build open source projects]
276276
277277
** Third-party integrations

docs/guides/modules/integration/pages/ghes-github-app-configuration.adoc

Lines changed: 0 additions & 160 deletions
This file was deleted.
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
= GitHub App configuration for GitHub Enterprise Server
2+
:page-platform: Cloud, Server
3+
:page-description: Required permissions and event subscriptions for the CircleCI GitHub App on GitHub Enterprise Server, with steps to verify and update your configuration.
4+
:experimental:
5+
6+
This page describes the expected GitHub App configuration for GitHub Enterprise Server instances and provides steps to verify and update your configuration.
7+
8+
[#overview]
9+
== Overview
10+
11+
When you connect a CircleCI organization to a GitHub Enterprise Server organization using the GitHub App integration for the first time, CircleCI creates and registers a GitHub App on your instance. This App (named "CircleCI App" by default) is configured with all required permissions and event subscriptions. No manual configuration is needed. Other organizations on the same instance do not need their own App. They install the same CircleCI App, which is owned and managed by the organization where it was originally registered.
12+
13+
After creation, the admins of the App's host organization and GitHub Enterprise Server instance admins fully own the App configuration. It is their responsibility to ensure that the App configuration is not modified unexpectedly, as changes affect all organizations the App is installed on. CircleCI has no way to identify or rectify issues stemming from unexpected changes to App configuration on your GitHub Enterprise Server instance.
14+
15+
Occasionally, CircleCI may introduce new features that require additional permissions or event subscriptions. When this happens, admins will need to update the App configuration following the steps described on this page.
16+
17+
[#verifying-your-app-configuration]
18+
== Verifying your App configuration
19+
20+
You can check your App's current configuration by visiting the App settings page on your GitHub Enterprise Server instance:
21+
22+
[source,text]
23+
----
24+
https://<your-ghe-instance>/organizations/<HOST_ORG_NAME>/settings/apps/circleci-app
25+
----
26+
27+
Use the left sidebar to browse through the different sections of the App configuration.
28+
29+
[#required-permissions-and-events]
30+
== Required permissions and events
31+
32+
Under **Permissions & events** in your App settings, your CircleCI GitHub App must have the following permissions and event subscriptions. If any are missing, some CircleCI features will not work as expected.
33+
34+
NOTE: These lists are updated as new CircleCI features are introduced that require additional permissions or events.
35+
36+
[#repository-permissions]
37+
=== Repository permissions
38+
39+
[.table-scroll]
40+
--
41+
[cols="1,1", options="header"]
42+
|===
43+
| Permission
44+
| Access level
45+
46+
| Commit statuses
47+
| Read and write
48+
49+
| Contents
50+
| Read and write
51+
52+
| Issues
53+
| Read and write
54+
55+
| Pull requests
56+
| Read and write
57+
|===
58+
--
59+
60+
No additional permissions beyond those listed above are currently required.
61+
62+
[#event-subscriptions]
63+
=== Event subscriptions
64+
65+
* Delete
66+
* Issue comment
67+
* Meta
68+
* Pull request
69+
* Pull request review
70+
* Pull request review comment
71+
* Push
72+
73+
No additional event subscriptions beyond those listed above are currently required.
74+
75+
.Required event subscriptions on the GitHub App settings page
76+
image::guides:ROOT:ghes-app-event-subscriptions.png[GitHub App settings page showing the required event subscriptions with Delete, Issue comment, Meta, Pull request, Pull request review, Pull request review comment, and Push selected]
77+
78+
[#updating-permissions-and-events]
79+
== Updating permissions and events
80+
81+
If your App configuration does not match the requirements above, you may see a warning in CircleCI on your GitHub App Server card: **"Some CircleCI features require updated App permissions."**
82+
83+
.Warning displayed when App permissions need updating
84+
image::guides:ROOT:ghes-app-permissions-warning.png[CircleCI warning banner showing that some features require updated App permissions with a Learn how to fix this link,width=400]
85+
86+
This can happen for one of two reasons:
87+
88+
. The App settings have not been updated yet. Someone with access to the App configuration needs to manually add the required permissions and event subscriptions.
89+
. The App settings have been updated, but your organization has not accepted the changes yet. When an App's permissions change, every organization with the App installed must separately approve the new permissions.
90+
91+
The steps below help you determine which situation applies and how to resolve it.
92+
93+
[#step-1-check-pending-permissions]
94+
=== Step 1: Check if your organization has a pending permissions request
95+
96+
This step requires admin access to the GitHub organization the App is installed on.
97+
98+
If the App settings have already been updated by the App owner, your organization will have a pending request to accept the new permissions.
99+
100+
. In CircleCI, on the GitHub App Server card, select the **settings icon** to open the App installation configuration page on your GitHub Enterprise Server instance. The URL follows this pattern: `https://<your-ghe-instance>/organizations/<YOUR_ORG_NAME>/settings/installations/<INSTALLATION_ID>`
101+
. Look for a banner or notice requesting approval of additional permissions.
102+
103+
**If you see a permissions request:** Accept it. The new permissions take effect for your organization immediately.
104+
105+
**If you do not see a permissions request:** The App settings have not been updated yet. Continue to Step 2.
106+
107+
[#step-2-update-app-settings]
108+
=== Step 2: Update the App settings
109+
110+
This step must be performed by an admin of the organization that _owns_ the CircleCI App on your GitHub Enterprise Server instance. This may be a different organization than the one you have checked installation configuration for in Step 1.
111+
112+
[#find-the-app-owner]
113+
==== Find the App owner
114+
115+
From the App installation page (the same page from Step 1), select the **App settings** link at the top of the page. This will take you to the App configuration page.
116+
117+
NOTE: If the App is owned by a different organization than yours, you may not have access to this link. Contact an admin of that organization, or a GitHub Enterprise Server instance admin, to perform the following steps.
118+
119+
[#apply-the-required-configuration]
120+
==== Apply the required configuration
121+
122+
. On the App settings page, select **Permissions & events** from the left sidebar.
123+
. Update the repository permissions and event subscriptions to match the tables in the <<required-permissions-and-events>> section above.
124+
. Select **Save changes**.
125+
126+
[#step-3-accept-new-permissions]
127+
=== Step 3: Accept the new permissions on each organization
128+
129+
Once the App settings have been updated, every GitHub organization that has the CircleCI App installed needs to accept the new permissions. Organization admins receive an email notification from GitHub prompting them to review and approve the changes.
130+
131+
To accept manually:
132+
133+
. Navigate back to your organization's App installation configuration page. You can get there by navigating to CircleCI > Organization Settings > VCS Connections, and selecting the **settings icon** on the GitHub App Server card.
134+
. Look for a notice about new permissions being requested.
135+
. Review and accept the new permissions.
136+
137+
The updated permissions take effect for that organization immediately after acceptance.

0 commit comments

Comments
 (0)