How to configure Personal Access Token in GitHub to use in TIBCO Data Virtualization?

How to configure Personal Access Token in GitHub to use in TIBCO Data Virtualization?

book

Article ID: KB0071391

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization All supported versions

Description

Configuring VCS in TIBCO Data Virtualization (TDV) with GitHub that uses Personal Access Tokens for Enterprise accounts requires a few additional steps in comparison to the individual accounts. These are detailed below:

1. Authorize the repository for the Personal Access Token

Log into GitHub > Select the user profile on the right top corner > Settings > Developer Settings > Personal access tokens.
For the token that is generated, click "Configure SSO" as seen in the screenshot > Select the private repository for your organization, which will be configured with TDV to check in the resources, and save the changes.

GitHub Personal Access Token

2. Manage access for for the repository

Select the repository that will be used to configure with TDV > Go to "Settings" > Collaborators and teams > Manage access.
Search and add users. For these users, assign them roles like "Admin/Maintain/Write/Triage/Read' as applicable. Save the changes.

Manage Access for the repository

Following this, in TDV, login to Studio > VCS > Manage connections.
For Type, select "GIT"
URL: This is the URL for the repository
Under Verify Connection
User: username of the user who have access to manage the repository/admin of the repository
Password: Personal access token generated for the user
Click "Verify". Once the verification is successful, proceed to set the Branch from the dropdown. By default this is "Main"
Click "Set Encryption" to set the encryption password.
Now, "Create" tab should not get enabled. 

Proceed to use the GitHub repository to check in the resources.

Note: At the time of writing this article, GitHub VCS requires the user to provide the credentials each time a user commits / make any changes to the repository. This is a design requirement.

Environment

All supported environments

Issue/Introduction

This article details about Personal Access Token configuration in GitHub for enterprise accounts, so it can be used in TIBCO Data Virtualization.

Additional Information

TDV Documentation: Configuring Version Control for TDV Resources
https://docs.tibco.com/pub/tdv/8.7.0/doc/html/en-US/StudioHelp/Administration/Configuring_Version_Control_for_TDV_Resources.html#Creating

GITHub Documentation: Creating a personal access token
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token