Enabling and configuring Automation Action GitHub sensor

You can integrate Instana with a GitHub repository for managing automation scripts with the Automation Action GitHub sensor. The sensor is automatically deployed and installed with the Instana agent. After you enable the sensor, you can export the scripts generated with watsonx to GitHub. To run these scripts, also enable the Automation Action Script sensor.

Prerequisites

Before you enable this sensor, complete the following steps:

  1. Review the information in Securely using the automation framework.
  2. If the sensor is used in a self-hosted (on-premises) environment, ensure that the automation feature flag is enabled.

Enabling the sensor

The Automation Action GitHub sensor is disabled by default. To enable the sensor, update the agent configuration file as shown in the following example:

com.instana.plugin.action.github:
  enabled: true # by default is false
  baseUrl: <github_api_url> # i.e. https://api.github.com or https://github.ibm.com/api/v3
  accessToken:
    configuration_from:
      type: vault
      secret_key:
        path: <secret_path>
        key: <secret_key>
  owner: <github_owner> # specify either GitHub owner or organization
  organization: <github_organization>
Notes:
  • Use the vault for `accessToken` as shown in the preceding example to secure your access token.
  • Avoid using plain text tokens as they are insecure.

The following example shows the use of plain text token in the configuration and is for reference purpose only.

com.instana.plugin.action.github:
  enabled: true # by default is false
  baseUrl: <github_api_url> # i.e. https://api.github.com or https://github.ibm.com/api/v3
  accessToken: <github_access_token>
  owner: <github_owner> # specify either GitHub owner or organization
  organization: <github_organization>

Configuring default timeout

By default, a GitHup operation times out after 10 seconds. If you want to change the default timeout, add the defaultTimeout attribute to the sensor configuration section in the agent configuration file as follows:

com.instana.plugin.action.github:
  enabled: true
  defaultTimeout: 30 # optional, default timeout is 10 seconds