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 Settingspage, click GitHub apps.
-
Click New GitHub app.
GitHub app -
In the app registration page, do the following:
- In the GitHub app namefield, enter a label to identify the app.
- In the Homepage URLfield, enter the full URL to your application homepage.
- In the Callback URLfield, 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 tokenscheckbox. - To prompt users to authorize your app when they install it, select the Request user authorization (OAuth) during installationcheckbox.
-
In the Permissionssection, 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 repositoriesand click Install & authorize.
-
In the navigation menu, select General.
-
Click Generate a new client secret. Copy the Client IDand the generated Client secretvalues, and store them securely for later use.
GitHub app General tab

