Check for repo exists in validate-secret-repo-hook

This commit is contained in:
Oskar Thorén 2017-11-04 11:36:52 -05:00
parent 8312df8a5f
commit f89d8b1b35
1 changed files with 1 additions and 0 deletions

View File

@ -251,6 +251,7 @@
debug-secret (apply str (take 5 (github/webhook-secret)))]
(log/debug "validate secret one hook - repo exists and github origin" repo " - " debug-secret)
(and (not (string/blank? secret))
repo
(crypto/eq? github-signature
(str "sha1=" (hex-hmac-sha1 secret raw-payload))))))