Skip to main content

GitHub Webhook

Trigger Aisle workflows from GitHub events - push events, pull request activity, releases, and more.

Connector Setup

First, connect the GitHub integration from the Connectors page.

Setup Instructions

GitHub Webhook Trigger Settings

Step 1: Create the workflow

Create a new workflow and select GitHub as the trigger type.

Step 2: Configure trigger settings

In the workflow's Trigger Settings tab:

  • Webhook Secret - a secret string you generate. You'll enter this in GitHub too. Aisle uses it to verify that incoming requests are genuinely from GitHub.
  • Event Types - the GitHub events that should trigger this workflow (e.g., push, pull_request, release, workflow_run).

Copy the webhook URL shown in the trigger settings.

Step 3: Add the webhook in GitHub

In your GitHub repository, go to Settings > Webhooks > Add webhook.

  • Payload URL - paste the webhook URL from Aisle
  • Content type - application/json
  • Secret - paste the same webhook secret you configured in Aisle
  • Which events - select the events you want to trigger the workflow

Click Add webhook. GitHub will send a test ping to verify the URL is reachable.

Workflow input variables

When a GitHub event fires, these variables are available in your workflow:

VariableDescription
event_typeGitHub event type (push, pull_request, release, etc.)
actionAction qualifier (opened, closed, created, etc.)
repositoryRepository full name (owner/repo)
repository_urlRepository URL
senderGitHub username of the actor
refGit ref (branch or tag)
shaCommit SHA
branchBranch name
payloadComplete raw GitHub webhook payload

Pull request events additionally provide:

VariableDescription
pr_numberPull request number
pr_titlePR title
pr_bodyPR description
pr_statePR state (open, closed)
pr_urlPR URL
head_branchSource branch
base_branchTarget branch
head_shaHead commit SHA

Push events additionally provide:

VariableDescription
commitsArray of commit objects
head_commit_messageMost recent commit message
compare_urlURL comparing before/after

Release events additionally provide:

VariableDescription
tag_nameRelease tag
release_nameRelease title
release_bodyRelease notes
prereleaseWhether this is a pre-release
release_urlRelease URL

Troubleshooting

Webhook not triggering - Verify the event types configured in Aisle match the events selected in GitHub. Check that the webhook secret matches exactly in both places.

Signature verification failed - The webhook secret in Aisle does not match what was entered in GitHub. Update one to match the other.