Templates / Secure GitHub webhooks with HMAC256 signature validation

Secure GitHub webhooks with HMAC256 signature validation

Ready for 3.0

by Yves Tkaczyk ✓ · 236 views · created 2025-09-24 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 7 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects GitHub.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Compute HMAC (Crypto): hashes or encrypts values
  2. Validate HMAC (If): checks a condition and branches into true / false
  3. Respond 200 OK (Respond to Webhook): sends the response back to the webhook caller
  4. Respond 401 Unauthorized (Respond to Webhook): sends the response back to the webhook caller
  5. Get the profile of a repository (GitHub): get profile (repository)
  6. Stop and Error: stops the run with an error

Services it uses

GitHub

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Use cases Ensure that the calls to the workflow's webhook are (a) originating from the correct GitHub repository and (b) haven't been tampered with. How it works When a secret is provided in a GitHub webhook configuration, a x-hub-signature-256 header is…

Excerpt from Yves Tkaczyk's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.