Error while running a notebook job using git repo (Gitlab)

vinitkhandelwal
New Contributor III

I am trying to run a notebook job with a git repo hosted on Gitlab. I have Linked my Gitlab account using Gitlab token

Screenshot 2024-12-02 at 7.56.10 AM.png

Yet i am getting the following error on running the job

Screenshot 2024-12-02 at 7.58.11 AM.png

 How to resolve this?

Alberto_Umana
Databricks Employee
Databricks Employee

Hi @vinitkhandelwal,

Looks like the token could be missing required permissions for the operation. Please refer to:

You can clone public remote repositories without Git credentials (a personal access token and a username). To modify a public remote repository or to clone or modify a private remote repository, you must have a Git provider username and PAT with Write (or greater) permissions for the remote repository.

https://docs.databricks.com/en/repos/repos-setup.html

I have tried by providing every permission on Gitlab, yet it fails with above error

Screenshot 2024-12-03 at 2.33.34 AM.png