Connect to GitHub or GitLab.com#
Overview#
- Connecting the GitHub or GitLab integrations enables AI Workbench to create remote repositories.
This simplifies creating new projects and pushing them to respective platforms and namespaces.
Both platforms allow you to authenticate by OAuth or by PAT.
- You should have an active account on GitHub or GitLab before connecting the integration.
Create an account on the platform if you don’t already have one.
Connect GitHub Using OAuth#
- Step One: Open Settings and navigate to the GitHub integration.
Select Gear Icon (Top Right) > Settings
Select Settings > Integrations > GitHub Card > Connect
Select OAuth
- Step Two: Complete the GitHub authentication flow.
Click through the prompts to connect to your GitHub account
Copy the code displayed in the AI Workbench popup
Paste the code into the GitHub authentication page
- Step Three: Authorize the NVIDIA GitHub App.
Select Authorize on the GitHub authorization page
Wait for the connection to complete
Success: The GitHub card in Settings shows a connected status.
Note
Learn more about OAuth apps in the GitHub documentation.
Connect GitHub Using PAT#
- Step One: Create a Personal Access Token on GitHub.
Go to GitHub PAT settings
Create a new token with the following scopes:
repo— Full control of private repositoriesread:org— Read access to organization membership and teamsuser— Read access to user profile informationread:packages— Read access to GitHub packages
Copy the generated token
- Step Two: Open Settings and navigate to the GitHub integration.
Select Gear Icon (Top Right) > Settings
Select Settings > Integrations > GitHub Card > Connect
Select Personal Access Token
- Step Three: Enter your PAT and complete the connection.
Paste your PAT into the token field
Select Connect
Success: The GitHub card in Settings shows a connected status.
Connect GitLab Using OAuth#
- Step One: Open Settings and navigate to the GitLab integration.
Select Gear Icon (Top Right) > Settings
Select Settings > Integrations > GitLab Card > Connect
Select OAuth
- Step Two: Complete the GitLab authentication flow.
Click through the prompts to connect to your GitLab account
Wait for the connection to complete
Success: The GitLab card in Settings shows a connected status.
Connect GitLab Using PAT#
- Step One: Create a Personal Access Token on GitLab.
Go to GitLab PAT settings
Create a new token with the
apiscopeCopy the generated token
- Step Two: Open Settings and navigate to the GitLab integration.
Select Gear Icon (Top Right) > Settings
Select Settings > Integrations > GitLab Card > Connect
Select Personal Access Token
- Step Three: Enter your PAT and complete the connection.
Paste your PAT into the token field
Select Connect
Success: The GitLab card in Settings shows a connected status.
Note
Learn more about GitLab Personal Access Tokens in the GitLab documentation.