Not familiar with UiPath Studio and/or GitLab and need a walkthrough of how to set up Studio to clone a GitLab repository or what authentication method to use.
Cloning a GitLab Repository in UiPath
Using a Personal Access Token (PAT)
- Generate a PAT:
- Go to the GitLab account settings.
- Create a new token, providing a Token Name and Expiry date.
- Copy the PAT
- Make sure to save it - it cannot be accessed again.
- Connect in Studio > Home > Team > GIT > Clone Repository.
- In Select Scopes, choose
api
or another scope that suits your needs. - Copy the URL under Clone with HTTPS
- Go to Studio > Home > Team > GIT > Clone Repository
- Paste the "Clone to HTTPS" URL in Repository URL.
- Specify a directory.
- Set Authentication to Token.
- Add user.
- Copy the PAT into Token.
- Click Open
Using an SSH Key
- Generate an SSH Key:
- Verify GitLab Prerequisites for SSH Key
- If no SSH key pair exists, generate a new one.
- Add the public SSH key to the GitLab account and keep the private key secure.
- Verify the connection is possible.
- Copy the URL under Clone with SSH
- Go to Studio > Home > Team > GIT > Clone Repository
- Select Use SSH
- Paste the "Clone to HTTPS" URL in Repository URL.
- Provide Check out directory.
- Select Token as Authentication.
- Provide the path to the generated private key.
- Add the passphrase as Password if there is one created. If not, leave the Password box empty.
- Click Open.
In case of any errors, download Git Bash and use it to help troubleshoot to see if the same errors occur before logging a support case with UiPath.
References
- https://git-scm.com/docs/git
- https://github.com/plexoio/gitcommands
- Git Cheat Sheet (2024) - All Git Commands (geeksforgeeks.org)