Created on 02-28-202304:31 AM - edited on 02-28-202306:03 AM by VidyaSargur
Problem Description
When importing a project on CDSW / CML from a private repository in Gitlab / GitHub using the repository URL over HTTPS, it will fail to be created. The URL that is passed here is:
https://github.com/garrynv/demo123.git
Since the repository is private, you cannot only pass the URL to import it. GitHub will not be able to authenticate the request and will reject it. In the early days, users used to pass their username and password in the HTTPS URL and it used to work. something like below:
However, due to restrictions on Gitlab / GitHub end, this will not work anymore. Users will have to generate a PAToken and pass the PAToken to access private repositories remotely.
Solution
You can refer to the following documents on how to generate Personal Access Token