Bitbucket Cloud Repo Integration with Token
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 06:03 AM
Hey,
I am using Bitbucket Cloud and I want to connect my repository to Databricks. I am able to connect with my personal app password but what I am looking for is an authentication of a technical user.
I need the integration to point to my dbt repo, which will run as a workflow task and I don't want to use my personal git credentials for that because the service principal is the owner of the pipeline.
Is there a way of using non-personal access tokens to authenticate or is the only way creating a new technical user on Bitbucket?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 02:23 AM
Hi @Retired_mod,
thank you for your response! With this link you provided, I was able to authenticate with Bitbucket Cloud. The solution was to use x-token-auth as a username. I have tried with the generated email address before which didn't work. Thank you! Now I am facing the next issue.
I wanted to use the repository access to run dbt via workflows. I have added the git credential via terraform and checked with the cli that it is available, but I now I get the following error message:
[RepositoryCheckoutFailed] Failed to checkout Git repository: PERMISSION_DENIED: Missing Git provider credentials. Go to User Settings > Git Integration to set up your Git credentials
I want to run the workflow with a service principal as an owner and therefore don't want to set the git credentials for my personal user. How can the service principal get access to the git credential / repository?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 03:07 AM
I have created a new topic for this here: https://community.databricks.com/t5/administration-architecture/run-workflow-using-git-integration-w...

