Contents

GitHub Event

github_event_trigger · Nodes · Github · Trigger

Starts a workflow from a GitHub App webhook event.

GitHub Event Trigger#

Starts a workflow when the GitHub App backing a selected github installation connection delivers an event. Ordinary github_oauth connections cannot be used for event triggers.

Setup#

Configure the App webhook in GitHub before enabling a workflow. Use JSON payloads and the callback for the App source:

  • Environment-default App: https://your-verdalia-instance/api/webhooks/github/default
  • Workspace App: https://your-verdalia-instance/api/webhooks/github/<workspace_oauth_app_id>

Set the same webhook secret in GitHub and in GITHUB_APP_WEBHOOK_SECRET for the default App, or in the workspace App settings for a workspace App. Subscribe the App to the event types used by triggers. The trigger installation fails until the selected App source has a webhook secret.

Configuration#

  • Connection: the returned ULID for a github GitHub App installation connection.
  • Repository: exact owner/name; matching is case-insensitive.
  • Filter: one tagged event variant. Empty action, branch, workflow, or conclusion lists mean any value.

workflow_run, check_run, and check_suite can filter typed actions and conclusions. Branches are respectively workflow_run.head_branch, check_run.check_suite.head_branch, and check_suite.head_branch. Pull requests use pull_request.base.ref; pushes use ref after refs/heads/ is removed. A tag push does not match a non-empty branch filter.

workflow_run additionally accepts exactly one workflow selector: numeric workflow ID, exact workflow name, or exact workflow path. Each known event offers only its own GitHub action values; issues filters issue actions and push filters branches. Raw mode matches an exact GitHub event header name and an optional exact, case-sensitive action string. Raw actions are intentionally opaque and may be values not used by the known event filters. A known event filter never matches another event variant.

Output#

The sole output socket contains event, optional action (a typed known-event action or opaque raw string), delivery_id, installation_id, repository and sender where the typed event provides them, one normalized event-specific object, and raw: the original parsed GitHub JSON. raw is intentionally opaque; no webhook signature, secret, or token is included.

For a workflow run, workflow_run contains id, workflow_id, name, workflow_path, branch, head_sha, status, conclusion, and html_url. Raw mode emits common metadata and raw, without an invented event-specific object.

CI failure example#

To run on failed main-branch workflows for acme/repo, configure:

{
  "connection": "<GitHub connection ULID>",
  "repository": "acme/repo",
  "filter": {
    "event": "workflow_run",
    "actions": ["completed"],
    "branches": ["main"],
    "conclusions": ["failure"]
  }
}

GitHub App permissions#

Grant the App the matching read permission and subscribe to its webhook event: Actions for workflow_run, Checks for check_run and check_suite, Pull requests for pull_request, Contents for push, and Issues for issues.

Delivery lifecycle#

Each enabled installed workflow has one listener. One matching delivery starts one normal workflow execution per listener, in the order GitHub delivered them, including deliveries that arrive while earlier runs are still going. Reinstalling or disabling removes its listener. Delivery deduplication is bounded and process-local; a redelivery after a backend restart can run again.

The callback stays installed when automatic tasks are disabled because it is request-driven. Accepted callbacks and application-level rejections return bounded JSON. A recognized App source returns 401 for a missing or invalid signature and 400 for missing headers or a malformed signed payload. Those rejections reach every active listener of that App source, creating one failed trigger invocation per listener; they do not emit output or run downstream nodes. Unknown sources return 404 without workflow invocations. Accepted, ping, duplicate, and nonmatching deliveries return 200. A delivery Verdalia cannot store returns 503, so GitHub can deliver it again.

Inputs

None.

Outputs

  • output

Configuration

FieldTypeRequiredDescription
connectionconnection(github)YesGitHub App installation connection
repositorystringYesExact GitHub repository owner/name
filtertagged_unionYesEvent-specific GitHub webhook filter
base_configrecordNoShared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow).