Setting up a GitHub Integration
Last updated
Was this helpful?
Last updated
Was this helpful?
The GitHub integration supports two authentication methods: Personal Access Token (PAT) and GitHub App authentication. Choose the method that best aligns with your organization's security requirements.
Personal Access Tokens provide a simple way to authenticate with GitHub APIs. For detailed instructions, see the .
To authenticate using a Personal Access Token:
Go to your GitHub account settings
Navigate to Developer settings > Personal access tokens > Tokens (classic)
Click Generate new token and select Generate new token (classic)
Name your token and set the read-only permissions to the resources you need
Save generated token
In CloudQuery Platform, go to Data Pipelines → Integrations. Click Create Integration and type Github to find the Github integration.
Update the YAML to add an entry for github_personal_access_token:
Add a new secret with Key github_personal_access_token
To set up:
Create a GitHub App in your organization:
Go to Organization Settings > GitHub Apps > New GitHub App
Configure the app with read-only permissions for the resources you need
Generate and download the private key
Install the app in your organization
Note down the following details:
App ID: Found in the app's settings
Installation ID: Found in the URL when viewing the app installation
Private key: The downloaded RSA key
In CloudQuery Platform, go to Data Pipelines → Integrations. Click Create Integration and type GitHub to find the GitHub integration.
Update the YAML to add entries:
Configure your GitHub App integration:
For App authentication, you need to create a GitHub App and install it on your organization. GitHub App authentication provides higher rate limits and better security through fine-grained permissions. For detailed instructions, see the .
To start using the GitHub source plugin, update a plugin configuration section. Here's a minimal example that extracts issues from the cloudquery/cloudquery repository. For complete configuration options, see the .
With your GitHub integration created, you can now proceed to use it in a . This will give you the opportunity to specify when your GitHub sync should be run, and to which destination databases.