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
Copy file name to clipboardExpand all lines: docs/build-your-software-catalog/sync-data-to-catalog/git/github/self-hosted-installation.md
+57-56Lines changed: 57 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,80 +6,81 @@ import FindCredentials from "/docs/build-your-software-catalog/custom-integratio
6
6
7
7
# Self Hosted Installation
8
8
9
-
:::note Prerequisites
9
+
The "Self Hosted Installation" guide is specifically for organizations that run their own GitHub Enterprise instance.
10
10
11
-
- A registered organization in Port;
12
-
- Your Port user role is set to `Admin`.
11
+
In organizations that have a self-hosted GitHub installation there is no access to our official public app, therefore there are some extra steps you need to take to install the GitHub app.
In organizations that have a self-hosted GitHub installation there is no access to our official public app, therefore there are some extra steps you need to take to install the GitHub app:
20
+
## Steps
17
21
18
-
1.[Register](#register-ports-github-app) Port's GitHub app in your GitHub organization;
19
-
2.[Deploy](#deployment) Port's GitHub app Docker image inside your VPC;
22
+
1.[Register](#register-ports-github-app) Port's GitHub app in your GitHub organization.
23
+
2.[Deploy](#deployment) Port's GitHub app Docker image inside your VPC.
20
24
3.[Install](#installing-ports-github-application) Port's GitHub app in your GitHub organization and on select repositories.
21
25
22
-
## Register Port's GitHub App
26
+
###Register Port's GitHub App
23
27
24
28
1. Navigate to your organization inside your self-hosted GitHub and click on Settings:
Keep the file, you will need it for the deployment step.
48
+
-**Webhook URL (Required):**`HTTP Server URL`, if you don't yet know the value of this step, add a placeholder value until you deploy the GitHub backend
69
49
70
-
## Deployment
50
+
-**Webhook secret (Recommended):**`Webhook secret` (Any string you would like)
71
51
72
-
:::note Prerequisites
52
+
-**Repository Permissions:**
73
53
74
-
You will need your Port `ORG_ID`, `CLIENT_ID` and `CLIENT_SECRET`.
54
+
- Actions: Read and Write (for executing self-service action using GitHub workflow)
55
+
- Checks: Read and Write (for validating `Port.yml`)
56
+
- Contents: Readonly (for reading port configuration files and repository files)
Keep the file, you will need it for the deployment step.
77
78
78
-
:::
79
+
### Deployment
79
80
80
-
In order to make use of [Self-Service Actions using GitHub Workflow](../../../../actions-and-automations/setup-backend/github-workflow/github-workflow.md), please contact us at [support.port.io](http://support.port.io/).
81
+
In order to make use of [Self-Service Actions using GitHub Workflow](https://docs.port.io/actions-and-automations/setup-backend/github-workflow), please contact us at [support.port.io](http://support.port.io/).
81
82
82
-
## Docker
83
+
###Docker
83
84
84
85
To use our GitHub app you will need to deploy our official GitHub app docker image on your VPC.
85
86
@@ -97,13 +98,13 @@ Run the following command to start the app:
97
98
docker run \
98
99
-e APP_ID=<APP_ID from register step> \
99
100
-e WEBHOOK_SECRET=<WEBHOOK_SECRET from previous step> \
100
-
-e GHE_HOST=<GITHUB BASE HOST, ie github.compay.com> \
101
+
-e GHE_HOST=<GITHUB BASE HOST, ie github.company.com> \
101
102
-e PORT=<Any PORT> \
102
-
-e PORT_URL=https://api.getport.io \
103
-
-e PORT_ORG_ID=<ORG_ID>\#For self service actions, requires a Kafka topic
0 commit comments