x-hub-signature-256
header is added to the webhook.Compute HMAC256
computes the HMAC256 signature similarly to how it was computed by GitHub.Validate HMAC256
tests for the equality of the computed value and the value provided by the header.
Stop and Error
step is optional and can be removed. Removing it means that the workflow completes successfully while still returning 401 to GitHub. This means that you will not be able to easily track malicious or incorrect calls to your webhook from n8n.Secret
field in the Compute HMAC256
node with the same value as the secret stored in the Secret
field in the GitHub webhook definition.Secret
key. Key can be of any length and should be generated with a key or password generator.Developers or DevOps engineers who want to ensure secure webhook communication between GitHub and n8n.
The secret is stored in plain text in the workflow. You should take this into consideration if the workflow is committed to source control or shared in any other way.