Connect to Apsara DevOps Codeup

Updated at:

After you connect code repositories in an Apsara DevOps organization to a Digital Employee, conversations and long-running tasks can access these code repositories within the selected scope.

Prerequisites

  • A Digital Employee has been created.

  • An accessible Apsara DevOps organization is available, along with a personal access token (PAT) that has read-only permissions on code repositories in that organization.

  • When you use a Region site, the organization has enabled Internet access. If the organization is configured with an IP whitelist, add the STAROps egress IP to the whitelist.

Procedure

1. Open Code access

Click Settings > Connectors > Code access.

2. Select Apsara DevOps Codeup

  1. Click Add code access.

  2. Select Apsara DevOps Codeup.

  3. Click Next.

3. Enter the connection method

  1. Connector ID: Uniquely identifies the connector and cannot be modified after creation. Rules: 1 to 64 characters, consisting of only lowercase letters, digits, and hyphens, starting with a letter and ending with a letter or digit.

  2. Name: Used to distinguish connections in the list.

  3. Select the Apsara DevOps site:

    • Central site: Connects to Apsara DevOps central-site organizations discoverable by the current Alibaba Cloud account.

    • Region site: After you select a region, the system automatically loads the organizations that can be connected and their Internet access domains.

      • A Region site must have Internet access enabled before STAROps can connect to it. To ensure security, we recommend that you configure a whitelist for the STAROps egress IP.

    • Custom account: Manually enter the site type, organization, access domain, and account information of another account.

4. Configure the organization and credentials

  1. Select the organization to connect to. If no manageable organization is found under the current account, check the account's management permissions on Apsara DevOps.

  2. Enter the personal access token (PAT) for that organization.

    • For the steps to obtain a personal access token, see Obtain an access token. We recommend that you set a longer validity period to avoid frequent connector updates. You can grant read-only or read-write permissions as needed.

  3. Click Verify repository permissions. After verification succeeds, the page displays the current account and you can proceed to the access scope.

    A saved token is not displayed again. You must re-enter the PAT when you verify again.
    • Note: If the PAT is valid but has no permission to access the selected organization, replace it with a PAT for that organization. If verification fails for a Region site, also check the PAT and the organization's dedicated domain.

5. Select code repositories

In Access scope, select the code repositories that this connector is allowed to access. You can search by name. After you confirm, click Next.

If the PAT cannot read the code repositories of the selected organization, grant read-only repository permissions and try again.

6. Configure data modeling

  • Basic modeling: Always on. After the connector is created, the selected code repositories and their basic relationships are modeled.

  • Agentic relationship exploration: Optional. After basic modeling, it explores cross-source relationships with applications, infrastructure, observable data, and more. Modeling starts conversations and is billed based on the selected model and actual usage.

After you confirm, click Next.

7. Check and save

In Check and add, verify the connector ID, site, organization, the number of selected code repositories, and the modeling configuration. Then click Finish.

After you save, the system checks the connection status. The connector appears in the Code access list.

Verification

We recommend that you verify whether the connector is added successfully as follows:

  1. In the Code access list, the connector's name, type (Apsara DevOps Codeup), status (Succeeded), organization, and number of selected code repositories are consistent with what you configured.

  2. Open the details and verify Connection and authentication and Organization and code repositories.

FAQ

Failed to load Apsara DevOps organizations, or a message indicates no permission to view organizations

The current Alibaba Cloud account cannot list Apsara DevOps organizations. Contact your administrator for authorization and try again. For a Region site, also make sure the account has permission to view Region organizations.

The PAT is invalid

Check whether the token has expired and whether it belongs to the selected organization. For a Region site, also check the organization's dedicated domain.

Connection verification failed

Check the organization domain and the Internet access configuration. If the organization indicates that an IP whitelist is required, add the STAROps egress IP to the organization's whitelist before you continue.

Repository permission verification failed, or the access scope failed to load

Make sure the PAT has read-only repository permissions, check the network, and try again.

A message indicates that the connector ID already exists when saving

Change the connector ID and try again.

The connector status is Failed

You can recheck the connection status. If it still fails, delete the connector and create a new one.