- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 05:50 PM
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 10:05 AM
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:
-
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.
-
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:
-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 10:05 AM
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:
-
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.
-
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:
-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Could you please give a detailed example?
how to define env varaibles? BUNDLE_VAR?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
@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

