Does a script cloning private repo need credentials of the user?

Viewed 24

My understanding is that if an employee setups up a script that clones a private repo from gitlab, he would have to put his private-key in the script and there should be a corresponding public-key in his gitlab account. So the process is connected to a particular user.

What happens if that employee leaves the company? Do we have to create another user on gitlab with new public-key, and change the private key the in script? Is there any way to do this without creating a new user?

0 Answers
Related