GitHub
Dropzone AI interfaces with GitHub, a software building platform. Dropzone integrates with GitHub's security features to identify data breaches or secret/credential leaks in your projects.
To integrate with GitHub, you must have purchased GitHub Secret Protection.
Integration Overview
To enable these integrations you will perform the following actions:
Enable GitHub Secret Protection in your organization or repositories
Create a Classic Personal Access Token with the necessary roles and permissions
Enable the Data source in your Dropzone tenant
Enable GitHub Secret Protection
If you have not already enabled GitHub Secret Protection in the organization or repositories you want Dropzone to have access to, you must do so now.
To enable security features at a repository level, you must be a repository owner or user with Admin privileges. Do the following:
In each repository you want Dropzone to scan, navigate to Settings
In the left sidebar, navigate to Security and quality > Advanced Security
Click "Enable" to the right of the features you want to activate
To enable security features at an organizational level, you must be an organization owner or user with Admin privileges. Do the following:
Open your organizations page
Select the organization you want Dropzone to access, then click "Settings"
In the left sidebar, navigate to Security > Advanced Security > Configurations
Click "New Configuration"
Click "Custom configuration"
Name your configuration something memorable, such as "Dropzone AI Configuration"
Enable the features you wish to enable, then click "Save configuration"
See here for a list of possible features and information on advanced security customization.
Once you have created your organization configuration, you must apply them to individual repositories.
To do so, do the following:
In the Configurations page of your organization's security settings, click "Repositories"
Select each repository you want Dropzone to access
Click "Apply configuration"
Select the custom security configuration you just created
Click "Apply"
Each repository's configuration status should show the configuration as attached. If you have any errors, engage your GitHub support representative.
Create a Personal Access Token
GitHub requires a Classic Personal Access Token to configure.
To obtain an Access Token, do the following:
As an organization owner, navigate to your GitHub account
Click your profile picture in the upper right
Click "Settings"
In the left sidebar, click "<> Developer settings"
In the left sidebar, navigate to Personal access tokens > Tokens

Click "Generate new token" then select "Generate new token (classic)"

In the Note section, name the token something memorable, such as "Dropzone AI"
Set an expiration date for the token

Assign the token the following scopes:
read:audit_log
Retrieve audit log data
read:org
Retrieve information about organization membership, organization projects, and team membership
security_events
Grants read and write access to security events in the code scanning API

Click "Generate token"
Copy the personal access token shown for use later in the Dropzone UI

Enable GitHub
To enable the Data Source integration, you will need the following information:
Organization
Your organization name
Personal Access Token
The Personal Access Token (PAT) value you generated earlier
Enterprise (optional)
Your enterprise slug, e.g. https://github.com/enterprises/my-enterprise-slug. Inputting this will allow Dropzone to search every organization within the enterprise the PAT can see
API URL
The API URL your organization uses, e.g. https://api.github.com, https://api..ghe.com, or https:///api/v3
To enable the Data Source integration, do the following:
Navigate to your Dropzone AI tenant home page e.g. https://mycompany.dropzone.app
In the left side bar, navigate to Platform Settings > Integrations

Click "Library"

In the Search bar, search GitHub, then click "Configure"

Input the Organization, Personal Access Token, Enterprise (optional) and API URL

If you wish to guide Dropzone's AI agent in querying data, check "Enable" under "Query guidance"
Click "Add Item", then input conditions and instructions for the AI
Contact our Customer Success team for more information about this feature

Click "Test & Save" to finish
If you have any errors contact our Customer Success team.
Was this helpful?