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:
In your repository, go to Settings > Secrets and variables > Actions.
Click New repository secret.
Create two secrets:
Name:
AISRE_BUILD_WEBHOOK_URLValue: Your build webhook URL from AI SRE
Click Add secret
Repeat for deploy webhook:
Name:
AISRE_DEPLOY_WEBHOOK_URLValue: 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:
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
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:
service.name
services[].service
✅ Yes
artifact.version or service.version
services[].version
✅ Yes
COMMON MISTAKES
Version mismatch: Build sends commit SHA, deploy sends semantic version, so there is no match.
Service name mismatch: Build sends full repository name
org/repo, deploy sends justrepo, so there is no match.Use
${{ github.sha }}in both build and deploy webhooks for consistency.
Test webhooks
Test build webhook
Trigger a build and confirm the webhook reaches AI SRE:
Push a commit or create a PR to trigger your build workflow.
Check the workflow run logs for the webhook curl command.
In the AI SRE left navigation, go to Integrations.
Click the More icon (...) on the BUILD integration.
Select Debug to view received webhook events.
Test deploy webhook
Trigger a deployment and confirm the webhook reaches AI SRE:
Trigger a deployment workflow.
Check the workflow logs for webhook execution.
In the AI SRE left navigation, go to Integrations > DEPLOY > Debug.
Verify the deploy webhook appears with correct payload.
Verify the connection
After sending both build and deploy webhooks:
In the AI SRE left navigation, go to Change Management.
You should see deployment records linked to builds.
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
Next steps
Go to Deploy Change Investigator for the complete setup guide.
Go to AI Agent RCA to learn how change detection works during incidents.
Go to Configure Jenkins for webhook setup in Jenkins pipelines.
Last updated
Was this helpful?