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: README.md
+7-59Lines changed: 7 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,71 +19,19 @@ Before submitting a new Feature request, please check existing open and closed I
19
19
20
20
```sh
21
21
# Run the application in "dev" mode and watch for changes
22
-
npm start
22
+
npm run dev
23
23
# Generate models from the openapi definition
24
24
npm run openapi
25
25
```
26
26
27
-
## Configuration File
27
+
## Application Configuration
28
28
29
-
This service/Action requires that a configuration file be present in the `.github` repository of your GitHub Organization. An example of this is show below:
29
+
🚧 Coming soon...
30
30
31
-
Filename: `team-sync-options.yaml`
32
-
```yaml
33
-
# This property is used to set the Owners of the Organization. Currently, this will NOT
34
-
# remove anyone who was manually added as an Owner to the org.
35
-
OrganizationOwnersGroup: Some_Org_Owner_Group
31
+
## Per-Organization Configuration
36
32
37
-
# This property is used to control the addition of general Members to your Organization.
The Client ID and Client Secret must be provided as environment variables to the application.
79
-
80
-
A GitHub App registration must be created with the following permissions (this information should be moved to an `app.yml file` instead of being documented here):
81
-
82
-
* Repository- Contents: Read (only necessary for the `.github` repository)
83
-
* Repository- Deployments: Read and Write (only necessary for the `.github` repository)
84
-
* Organization- Members: Read and Write
85
-
* Organization- Administration: Read and Write
86
-
* This is needed for managing [Security Managers](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/security-managers?apiVersion=2022-11-28), though as Security Managers is in beta, this permission may also change.
87
-
* ❗ **If you do not intend to use this functionality**, feel free to exclude this permission from your GitHub App Registration
88
-
89
-
The AppId and Private Key must be provided as environment variables to the application.
37
+
See [./docs/RunningTheApp.md](./docs/RunningTheApp.md) for further details!
* This permission is needed for managing [Security Managers](https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/security-managers?apiVersion=2022-11-28), though as Security Managers is in beta, this permission may also change.
32
+
* ❗ **If you do not intend to use this functionality**, feel free to exclude this permission from your GitHub App Registration
This service/Action requires that a configuration file be present in the `.github` repository of your GitHub Organization. An example of this is show below:
4
+
5
+
Filename: `team-sync-options.yaml`
6
+
```yaml
7
+
# This property is used to set the Owners of the Organization. Currently, this will NOT
8
+
# remove anyone who was manually added as an Owner to the org.
9
+
OrganizationOwnersGroup: Some_Org_Owner_Group
10
+
11
+
# This property is used to control the addition of general Members to your Organization.
This application is written to be operating system agnostic. If it does not work properly on a particular operating system, submit an Issue detailing your setup and problem.
4
+
5
+
We strive to make successfully running and building this application fairly straightforward. The steps are as follows:
* A container runtime and builder- Docker, Podman, etc.
20
+
* Docker: https://docs.docker.com/get-docker/
21
+
* Podman: https://podman.io/docs
22
+
23
+
## 2 GitHub App Registration
24
+
25
+
See [./GitHubAppRegistration.md](./GitHubAppRegistration.md).
26
+
27
+
## 3 Source of Truth credentials
28
+
29
+
At this point in time, the logic to fetch information from an LDAP system is baked into this application. Eventually it will be moved to a plugin to make running and developing this application simpler.
30
+
31
+
At this point in time, you will need to provide 4 values in the application configuration for LDAP:
32
+
33
+
```sh
34
+
LDAP_SERVER=
35
+
LDAP_USER=
36
+
LDAP_PASSWORD=
37
+
LDAP_GROUP_BASE_DN=
38
+
```
39
+
40
+
## 4 Configure the App
41
+
42
+
See [./ApplicationConfiguration.md](./ApplicationConfiguration.md).
43
+
44
+
## 5 Run the App
45
+
46
+
With all the prerequisites out of the way, the following commands will now allow you to run the app:
47
+
48
+
```sh
49
+
npm install
50
+
npm run dev
51
+
```
52
+
53
+
After running the commands above, you should eventually see console output similar to the following:
0 commit comments