Created
November 15, 2018 07:10
-
-
Save abhirockzz/8a1dfa72e4b64cab854410adbff88c35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
signatureFromGithub := fnCtx.Header().Get("X-Hub-Signature") | |
if !matchSignature(signatureFromGithub, fnCtx.Config()["github_webhook_secret"], payload) { | |
log.Println("Signature did not match. Webhook was not invoked by Github") | |
return | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment