Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Link an application or application-customization to source control

Linking an application or application-customization to source control allows application developers to manage changes in App Engine Studio (AES) from a Git repository.

Before you begin

  • Learn more about Manage customizations to applications.
  • Create a dedicated Git repository for the application. For increased security, enable multi-factor authentication for the Git repository.
  • Generate an access token that the source control integration can use instead of a password and multi-factor authentication passkey while creating a Credential record. Search for personal access token on GitHub or GitLab.
  • Restrict permissions on the access token to allow read and write access to the Git repository.
  • Verify that the non-production instance has network access to the Git repository.
  • Ensure that users add the email address to their respective Users Table (ServiceNow sys_user) records that they use in their commits to the Git repository.
  • Role required: admin

About this task

The source control integration does not support linking to an application or customization on a production instance. Instead, install applications on a production instance from the application repository, an update set, or the App Engine Studio.

Procedure

  1. Navigate to All > App Engine > App Engine Studio.

  2. From the My Apps page, open your application.

  3. Select Source control > Link to source control.

    App Engine Studio displays the Link to source control dialog box.

Image omitted: source-control-link-to-sc-purple.png
Link to source control dialog box
  1. Enter the connection details for the Git repository.
FieldDescription
Network protocolHttps or SSH credential type that enables secure channel data exchange.
URLThe URL to the Git repository where you want to save application files. For SSH protocol, use command to generate private key ssh-keygen -t rsa -m PEM -b 4096 -C “email@address”.Note: If the Git repo URL for SSH provided by your Git server does not work, check with your Git server owner or provider for the correct URL. There may be additional specifications such as scheme protocol prefixes, port numbers, and so on, required for your Git repo URL to function.
BranchThe repository branch to work on within the application.Note: This branch is used for commits. The default branch is set to "main" if it is not already set in the remote repository. If there is no default branch on the remote git repository, the instance creates a new default branch with the name "main". This is configured using the glide.source_control.git_default_branch system property.
MID Server Name

The name of the existing MID Server to link through.Note: Use a separate MID Server to prevent conflicts with Discovery activities.

Be sure that the MID server user can create files to the sys_attachment table and that the table can accept files of the “bundle” type.

Linking or an application through a MID Server enables access to repositories behind a firewall. See MID Server for more information.

Default emailThe committer email address is defined by the sys\_user record if available. But if a committer's sys\_user record email field is empty, the system generates an alternate email \(username@instancename.service-now.com\). You can also enter a default email address and change it later. To use that default email address in all cases, select the check box.
CredentialThe credential to be used with the selected protocol. See Get started with credentials to learn more about creating credentials.Note: If you select the SSH network protocol, enter a valid credential of the SSH private key type. If you select the https protocol, enter a valid credential of the Basic Auth credentials type.
Commit CommentAn optional description of the repository or application.
**Note:** All application developers on the instance share a single set of repository credentials.
  1. Select Link to source control.

    The system validates the connection and user credentials and displays a success message.

    All application developers on the instance can use the linked Git repository to manage changes.

Parent Topic:AES integration with a Git source control repository

Related topics

MID Server

Getting started with credentials