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: 

Is it possible to do without the github token and integration?

kg6ka
New Contributor

Hey, guys.
I have a question, so, I have databricks jobs in workflow that are linked to my databricks repo, which contains the necessary scripts for one or another job. That is, the job is linked to the databricks repo.
The main code is developed in github and at the moment of release github action is triggered and pushed the code to databricks repo by means of rest api (according to your docs). But in order to push code in databricks repo it turns out that github integration is needed, which is strange. I'm not going to create webhooks or so on and I just need to push code from github to databricks repo, but it doesn't work and I get this error message
'{"error_code": "PERMISSION_DENIED", "message": "Missing Git provider credentials. Go to User Settings > Git Integration to set up your Git credentials."}'
So, how can I push code from github to databricks repo without git integration and just using databricks token?

Use POST /api/2.0/repos and PATCH /api/2.0/repos/{repo_id} for creation and updation -> https://docs.databricks.com/api/workspace/repos/update

 

Thanks,
Best.

1 REPLY 1

User16752239289
Valued Contributor

Does the user which the API token is generated from has the git credential configured for the git repo ?

If not, you can follow the steps here : https://docs.databricks.com/en/repos/get-access-tokens-from-git-provider.html

 

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