[DevSecOps] Connect a UiPath project to a GitHub repository

About the [DevSecOps] series of tutorials

This series of tutorials will focus on Development, Security and Operations regarding GIT Versioning Systems.
It will cover areas such as:

  • GIT integration
  • Branches & Pull Requests
  • CI/CD (Continuous Integration/Continuous Delivery)
    And much more…

Introduction to this tutorial

This guide will show you how to connect a UiPath project to a GitHub repository for GIT Versioning.

The primary purpose of this is to backup your project and integrate with issue and project tracking software for faster development.

I will go through creating the GitHub repository, connecting the UiPath project (GIT init) and making your first commit.

Creating a GitHub repository and finding your GIT URL

  • First off you need a GitHub account (create for free).

  • Click the New button to create a new repository, give your repository a name, select private or public visibility, and finish off by clicking Create repository

  • When presented with your newly created repository, copy the GIT URL for later use:

Connect your UiPath Project with GitHub

  • To connect your UiPath project, click the button Add to source control and select GIT init
    4-studio-git-init

  • Select the project folder (default path suggested) and click Select Folder

  • You are required to input an initial commit message and click Commit and push

  • You must now register your remote GitHub repository by supplying a name and the GIT URL that you copied earlier.

  • Click Add and Save

  • After this you are required to authenticate you GitHub account and authorize UiPath:

  • :warning: If you encounter an error saying that you do not have the UiPath GitHub application installed and configured, then simply follow the link and repeat the process after doing so.
    9-github-uipath-app

  • Now your UiPath Project should be connected to your GitHub repository, and displaying this in the bottom right hand corner of Studio:
    13-github-repo-connected

  • You should also be able to see files showing up in your GitHub repository:

Making your first commit from UiPath Studio

  • After making changes to your project you should notice a small pencil appearing next to your project files, and also in the bottom right hand corner of Studio.

    • This represents that there are changes that are not yet commited to your repository.
    • The “tray with an upwards arrow” icon represent the changes that are commited to your local repository, but not yet pushed to GitHub.
  • Click one of these icons to initialize the commit.
    15-changes-to-commit

  • Write a meaningful message about what changes has been made to the project and press Commit and push to send your changes to GitHub.

  • You should now be able to see the changes in your GitHub repository:

Please let me know if you have any questions or feedback for this tutorial.

Best Regards
Soren