
Databricks supports repository level integration with several Git
providers.
At DEFRA, GitHub is the provider of choice.
It is not required to set your Github credentials to clone a
repository.
They are required to be able to make changes to a repository.
Get Access Token
Navigate to GitHub and follow these steps to create a personal access
token which will allow access to repositories:
- In the upper right hand corner of the page click on your profile
photo and then click Settings
- Go to the bottom of the left hand side navigation bar and click
Developer Settings
- Click on Personal access tokens
- Click on Generate new token
- Enter a token note (this can be anything)
- Set the expiration to whatever you choose
- Under Select scopes check the
repo, worflow, gist
& user tick boxes
- Scroll down to the bottom of the page and click Generate
Token
- Copy this token as you will enter it into Databricks

Save your Access token to Databricks
- In Databricks click Settings in the bottom left of
the screen.
- Click User Settings
- Go to the Git integration tab
- In the Git provider drop-down, select GitHub
- Enter your GitHub user name or email
- Paste the access token into the Token Field
- Click Save

Add Repo
- Clone this repo by clicking on the green Code
button and copying the given link
- Navigate to Databricks and click on the New tab
then repo on the navigation bar in Databricks
- Paste the link into Git repository URL. The other
boxes should will auto fill with the Git provider and Repo name
- Click Create

The Repo will now be added, you can click on it to navigate to the
different notebooks available. These can be cloned into your workspace
where you can run them at your leisure.