GitHub: Configuring the App Activities Integration

This article explains how to configure the App Activities integration for GitHub.

Overview

App Activities provides you with an API-based solution for out-of-band visibility of all activity made by any user in a connected SaaS application. To provide App Activities with visibility of data within an app, you need to set up an integration with the required application. Once you create the integration, if a field has changed or expired, you can edit it from the Resources >Integrations > Integrated Apps page. For more information, see What is Application Control via API with App Activities.

To configure the App Activities integration, you need to:

  1. Configure the integration within the SaaS application

  2. Create the API connector in the CMA

A CASB license is required for App Activities. This license includes app and data control and App Activities via API. For more about purchasing a CASB license, please contact your Cato representative.

Configuring the GitHub Integration

To configure the GitHub integration, create a new Personal access token.

Prerequisites

  • You must have purchased a GitHub Enterprise license

  • These scopes (permissions) are provided:

    • User - read:user

    • Audit_log - read:audit_log

    • Org - read:org

    • Enterprise - read:enterprise

Step 1: Configure the Integration in the GitHub Developer Center

In the GitHub Developer Center, identify the access token to enter into the CMA.

To configure the GitHub integration:

  1. In the GitHub Developer Center, navigate to Personal access tokens > Tokens (classic).

  2. Click Generate new token.

  3. Set the token expiration date.

    We recommend setting the expiration date to the maximum allowable period of 1 year.

  4. Add the scopes listed above.

  5. Click Generate token.

  6. Copy and save the new access token so they can be added into the CMA.

  7. Navigate to Settings > Enterprises.

  8. Click on the name of your enterprise.

    The login page of your enterprise is displayed.

  9. Copy and save the last segment of the URL so it can be added into the CMA. For example, in the URL https://github.com/enterprises/cato, copy and save cato.

Step 2: Create the API Connector in the CMA

After you have set up an integration with the required application, add the details in the CMA.

To create the API connector in the CMA:

  1. From the navigation menu, click Resources > Integrations.

  2. Click the Integrated Apps tab.

  3. Click New.

    The New Integration panel opens.

  4. Select the SaaS Application you want to add.

  5. In the Capability drop down select App Activities.

  6. Add the details created during step one.

  7. Click Save.

  8. The app is visible on the Integrated Apps table with a Connected status.

After connecting your APIs, you can track the App activities in the Cloud Activities dashboard. Data may take a few minutes to appear.

Known Limitation

  • All events are fetched

Sources

  • Enterprise Audit Log Endpoint - Querying the Events endpoint

  • GraphQL and Users Endpoint - Querying about GitHub users.

Was this article helpful?

0 out of 0 found this helpful

0 comments