Check for repo exists in validate-secret-repo-hook
This commit is contained in:
parent
8312df8a5f
commit
f89d8b1b35
|
@ -251,6 +251,7 @@
|
||||||
debug-secret (apply str (take 5 (github/webhook-secret)))]
|
debug-secret (apply str (take 5 (github/webhook-secret)))]
|
||||||
(log/debug "validate secret one hook - repo exists and github origin" repo " - " debug-secret)
|
(log/debug "validate secret one hook - repo exists and github origin" repo " - " debug-secret)
|
||||||
(and (not (string/blank? secret))
|
(and (not (string/blank? secret))
|
||||||
|
repo
|
||||||
(crypto/eq? github-signature
|
(crypto/eq? github-signature
|
||||||
(str "sha1=" (hex-hmac-sha1 secret raw-payload))))))
|
(str "sha1=" (hex-hmac-sha1 secret raw-payload))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue