obtain-github-app-installation-access-token
You want to set up a CI workflow for your project that can access other repositories on GitHub. You don’t want to use your personal access token, because it gives access to all of your repositories. You want an access token that has fine-grained permissions, giving access to only the repositories you want to use. This tool helps you get that access token.
Set up a GitHub App
-
Go to Your Developer settings page (or your organization’s page: )
-
Click New GitHub App.
-
Enter the name of your app.
-
Enter a dummy URL for Callback URL.
-
Uncheck
. -
Add the required permissions. These actions are recommended:
-
-
Select whether the GitHub App can be installed on your account only or any account.
-
Note the App ID.
-
Scroll down to the Private keys section, and click Generate a private key.
-
In the navigation on the left, click Install App.
-
Click Install.
-
Select the repositories you want the app to be able to access, then click Install.
-
Note the Installation ID in the URL.
Get a CI token
This CI token is a bundle of your App ID, Installation ID, and the private key. Make sure you have these information ready:
-
App ID
-
Installation ID
-
Private key file
To generate a CI token, follow these steps:
-
Go to the CI token generator webpage.
-
Fill in the App ID and the Installation ID fields.
-
Drag the private key file into the GitHub App Private Key field.
-
Copy the resulting
GH_APP_CREDENTIALS_TOKEN
.