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

3 REPLIES 3

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:

sandy311
New Contributor III

Could you please give a detailed example?

how to define env varaibles? BUNDLE_VAR?

sandeepss

JGoedhart
New Contributor II

@Satyadeepak : I'm also curious how to configure this. What are the github user and token environment variables names databricks uses to configure github SSH authentication? Can't find them in the documentation