I'm setting up a GitHub App for ArgoCD authentication. The GitHub App setup is completed. But in ArgoCD it asks for GitHub App ID and GitHub App Installation ID. I could find the App ID from the GitHub App section itself. But I couldn't find the GitHub App Installation ID.
Is there a way to directly find GitHub App Installation ID from the GitHub website settings section? Or do we need to use GitHub API or something?
CodePudding user response:
I'm making this answer a little more explanatory.
For GitHub Apps created under Organizations:
- Go to the Organization settings
- Click on 'GitHub Apps' under 'Third-party Access'
- If there are multiple GitHub apps, choose your App and click on 'Configure'
- Once your GitHub App is selected check the URL for obtaining 'GitHub App Installation ID'
The URL looks like this:
https://github.com/organizations/<Organization-name>/settings/installations/<ID>
Pick the <ID> part and that's your GitHub App Installation ID.
For GitHub Apps created under Repository, you can find this under repository settings.
CodePudding user response:
The
InstallationID
is the same ID that you can find in the GitHub endpoint:
https://github.com/settings/installations/<ID>