This page describes how to set up and configure a third-party configuration before creating the GitHub data store.
Set permissions and obtain client ID and client secret
To register a GitHub app and obtain the client ID and client secret, do the following:
- Sign in to your GitHub account.
- Go to Settings > Developer Settings.
- In the Developer Settings page, click GitHub apps.
Click New GitHub app.
GitHub app In the app registration page, do the following:
- In the GitHub app name field, enter a label to identify the app.
- In the Homepage URL field, enter the full URL to your application homepage.
- In the Callback URL field, enter
https://vertexaisearch.cloud.google.com/oauth-redirect. - To ensure tokens expire regularly and to receive a
refresh_tokenthat can be used to request a new access token, select the Expire user authorization tokens checkbox. - To prompt users to authorize your app when they install it, select the Request user authorization (OAuth) during installation checkbox.
In the Permissions section, enable the following permissions:
Permission Name Permission Type Reason for Access Repository: Contents Read-only Read files, commits, branches, tags, releases, and search code Repository: Issues Read-only Read issues, labels, comments, and search issues Repository: Pull requests Read-only Read pull requests, diffs, PR comments, and search PRs Repository: Metadata Read-only (Mandatory) Search for repositories and users Organization: Members Read-only View organization teams and their members Account: Profile Read/Write Access user profile information Organization: Issue Types Read-only View available organization issue types In the section asking where to install the app, select Only on this account.
Click Create GitHub app.
In the navigation menu, select Install app.
Select an account to install the newly created app and click Install.
Select All repositories and click Install & authorize.
In the navigation menu, select General.
Click Generate a new client secret. Copy the Client ID and the generated Client secret values, and store them securely for later use.
GitHub app General tab