cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

DABs require library dependancies from GitHub private repository.

Aatma
New Contributor

developing a python wheel file using DABs which require library dependancies from GitHub private repository. Please help me understand how to setup the git user and token in the resource.yml file and how to authenticate the GitHub package.

pip install git+https://<your-github-token>@github.com/<your-username>/<your-repo>.git

1 ACCEPTED SOLUTION

Accepted Solutions

Satyadeepak
Databricks Employee
Databricks Employee

To install dependencies from a private GitHub repository in a Databricks Asset Bundle, you need to set up the GitHub user and token in the resource.yml file and authenticate the GitHub package. Here are the steps:

  1. Generate a GitHub Personal Access Token:

    • Go to GitHub and navigate to Settings > Developer settings > Personal access tokens.
    • Click Generate new token.
    • Select the scopes you need (e.g., repo for full control of private repositories).
    • Click Generate token and copy the token.
  2. Set Up the GitHub User and Token in resource.yml:

    • In your resource.yml file, add the GitHub user and token as environment variables. For example:

      resources:
        jobs:
          my-job:
            name:

View solution in original post

1 REPLY 1

Satyadeepak
Databricks Employee
Databricks Employee

To install dependencies from a private GitHub repository in a Databricks Asset Bundle, you need to set up the GitHub user and token in the resource.yml file and authenticate the GitHub package. Here are the steps:

  1. Generate a GitHub Personal Access Token:

    • Go to GitHub and navigate to Settings > Developer settings > Personal access tokens.
    • Click Generate new token.
    • Select the scopes you need (e.g., repo for full control of private repositories).
    • Click Generate token and copy the token.
  2. Set Up the GitHub User and Token in resource.yml:

    • In your resource.yml file, add the GitHub user and token as environment variables. For example:

      resources:
        jobs:
          my-job:
            name:

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group