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
+46-15Lines changed: 46 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,23 +16,40 @@ You can use the App to configure [CCTray Clients](https://cctray.org/clients/):
16
16
17
17
## Prerequisites
18
18
19
-
* Github Personal Access Token
20
-
*[FGPAT (recommended) or PAT](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)
21
-
* Read-Only access to Actions (Workflows, workflow runs and artifacts) required for Private repos.
22
-
* Please take into account the [Github API rate limit](https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limiting) for authentication tokens.
23
-
* Development
24
-
* Python 3.9
25
-
* pip
19
+
### Authentication Token
20
+
21
+
To authenticate with Github API, the app needs a `token`, it can be provided by **either** of the following methods
22
+
#### Github Personal Access Token
23
+
*[FGPAT (recommended) or PAT](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)
24
+
* Read-Only access to Actions (Workflows, workflow runs and artifacts) required for Private repos.
25
+
* You will need to set: `GITHUB_TOKEN="<your_token>"` as the environment variable.
26
+
27
+
#### Github APP (Recommened)
28
+
*[Create a Github APP](https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app) and grant Read-Only access to Github Actions
29
+
* The Github APP should be installed on the Github Organization or Account with access to the required repositories.
30
+
* You will need to set the following environment variable:
* Please refer to Github's offical documentation to know what these values are and where can you find them
37
+
38
+
**Please take into account the [Github API rate limit](https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limiting) for authentication tokens.**
Once up, the App binds to port `8000` by default and should be available at: http://localhost:8000
@@ -57,7 +86,7 @@ The App accepts GET requests with following parameters:
57
86
58
87
**optional parameter**
59
88
60
-
*`token` - If you want to use FGPAT per user to access the API, to overcome Github API rate limiting (this takes precedence over the token set in the env var).
89
+
*`token` - If you want to use FGPAT per user to access the API, to overcome Github API rate limiting (this takes precedence over the token/Github App auth set in the env var).
61
90
62
91
For Example:
63
92
@@ -158,7 +187,9 @@ curl -X GET http://localhost:8000/limit?token=<your_token>
0 commit comments