For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configure GitHub Actions for Deploy Change Investigator

Send build and deployment webhooks from your workflows

Configure GitHub Actions workflows to send build and deployment data to the Deploy Change Investigator.

Before you begin

  • Deploy Change Investigator setup: Create build and deploy webhook integrations in AI SRE. Go to Deploy Change Investigator to set up the webhook endpoints.

  • GitHub repository access: Permission to edit workflows and add secrets.

  • Webhook URLs: Copy the build and deploy webhook URLs from your AI SRE integrations.


Store webhook URLs as secrets

Store webhook URLs securely in GitHub:

  1. In your repository, go to Settings > Secrets and variables > Actions.

  2. Click New repository secret.

  3. Create two secrets:

    • Name: AISRE_BUILD_WEBHOOK_URL

    • Value: Your build webhook URL from AI SRE

  4. Click Add secret

  5. Repeat for deploy webhook:

    • Name: AISRE_DEPLOY_WEBHOOK_URL

    • Value: Your deploy webhook URL from AI SRE


Configure build webhooks

Add a webhook step to your build workflow after the artifact is published.

Example: Docker build workflow

GitHub context variables

GitHub Actions provides these context variables automatically:

Variable
Description
Example

github.sha

Full commit SHA

ffac537e6cbbf934b08745a378932722df287a53

github.ref_name

Branch or tag name

main

github.repository

Repository name

org/repo

github.server_url

GitHub server URL

https://github.com

github.run_id

Unique workflow run ID

1234567890

github.actor

User who triggered the workflow

username

github.event.repository.name

Repository name without org

repo


Configure deploy webhooks

Add a webhook step to your deployment workflow after the deployment completes.

Example: Kubernetes deployment workflow

DEPLOY STATUS IS RECORDED AS SUCCESS

The stock Harness Deployment template records every deploy activity as success. Sending "status": "FAILURE" is accepted but does not create a failed-deployment record. Keep the failure webhook if you want the deploy event captured, but do not rely on the status value to distinguish failed deploys.

Multi-service deployments

For workflows that deploy multiple services:


Use semantic versions

If you use semantic versioning instead of commit SHAs:

With Docker metadata action


Critical mapping requirements

The Deploy Change Investigator requires exact matches between build and deploy data:

Build webhook field
Deploy webhook field
Must match

service.name

services[].service

✅ Yes

artifact.version or service.version

services[].version

✅ Yes


Test webhooks

Test build webhook

Trigger a build and confirm the webhook reaches AI SRE:

  1. Push a commit or create a PR to trigger your build workflow.

  2. Check the workflow run logs for the webhook curl command.

  3. In the AI SRE left navigation, go to Integrations.

  4. Click the More icon (...) on the BUILD integration.

  5. Select Debug to view received webhook events.

Test deploy webhook

Trigger a deployment and confirm the webhook reaches AI SRE:

  1. Trigger a deployment workflow.

  2. Check the workflow logs for webhook execution.

  3. In the AI SRE left navigation, go to Integrations > DEPLOY > Debug.

  4. Verify the deploy webhook appears with correct payload.

Verify the connection

After sending both build and deploy webhooks:

  1. In the AI SRE left navigation, go to Change Management.

  2. You should see deployment records linked to builds.

  3. Click into a deployment to see:

    • Artifact versions

    • Commit SHAs

    • Linked PRs


Reusable workflow example

Create a reusable workflow to standardize webhook notifications across repositories:

.github/workflows/notify-aisre.yml

Call the reusable workflow


Troubleshooting

GitHub Actions build webhook not received in AI SRE

Confirm the webhook URL secret is configured correctly in repository settings, verify the curl command runs in the workflow logs, ensure GitHub Actions runners allow outbound HTTPS, and check the JSON payload for syntax errors.

GitHub Actions deploy webhook received but changes not showing in AI SRE

Ensure services[].service in the deploy webhook exactly matches service.name in the build webhook, and services[].version exactly matches artifact.version or service.version. Confirm both webhooks were sent by checking the Debug view for both integrations.

GitHub Actions workflow fails at the AI SRE webhook step

Check that the secret is configured and spelled correctly, fix any JSON syntax error in the curl payload, and confirm the date command is available using date -u +%Y-%m-%dT%H:%M:%SZ.


Next steps

Last updated

Was this helpful?