GitLab integration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 08:16 AM
I've followed instructions and did gitlab integration:
- Generated Personal Access Token from GitLab
- Add token (from step 1) to User settings (GitLab, email, token)
- In Admin console -> Repos Git URL Allow List permissions: Disabled (no restrictions)
- In Admin console -> Repos Git URL Allow List: https:.....*.git
- Pull works
- Push does not: The remote Git repo URL linked to this repo is not listed in the ALLOW list configured by your Workspace admin.
Am I missing some step?
Thanks for help !
- Labels:
-
Gitlab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 09:05 AM
"In Admin console -> Repos Git URL Allow List permissions: Disabled (no restrictions)."
Here I am using "only restrict .." give it a try 🙂
"In Admin console -> Repos Git URL Allow List: https:.....*.git"
Here just put only domain and separate it by commas, for example:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 10:50 AM - edited 07-24-2024 10:52 AM
I'd like to resurrect this thread, as there's no solution posted yet. When I try to push a branch from Databricks, I am receiving
Error pushing changes. Remote ref update was rejected. Make sure you have write access to this remote repository.
My repo is located on gitlab.com. Setup:
- In the Databricks Linked account settings, I've tried Git `username` as my corporate email in Gitlab. I've also tried `username` as my GitLab account name
- In the Databricks Linked account settings, I've tried `GitLab` and `Gitlab Enterprise Edition` as the Git provider.
- In the Databricks Admin settings, I have enabled "Restrict Clone, Commit & Push to allowed Git repositories" and set the URL allow list to "https://gitlab.com"
- My HTTPS GitLab token has `read_repository, write_repository` scopes with a Maintainer role.
Like OP, I can `git pull` the successfully but `push` fails. On the Databricks clone of the repo, all I have done is create a test file with one line in the root directory and update an existing file in the root directory with a single uncommented line. Please help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 11:29 AM
Discovered the solution to my problem - Databricks Git integration does not support the use of project-level access tokens. It only supports the use of user-level personal access tokens. When I switched my Git credentials to use a personal access token AND my corporate email according to GitLab, it worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2024 10:30 AM
> Databricks Git integration does not support the use of project-level access tokens
Thank you for reporting this issue. Gitlab project access tokens stopped working sometime after May 2024. The issue is on our backlog. Are you able to use an alternative to unblock your work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2024 12:55 PM
Thanks for your reply - I did, see my reply above.

