mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-20 19:27:06 +00:00
Merge pull request #1 from alexandredevely/alexandredevely-patch-1
update test sha1 with github signature
This commit is contained in:
commit
da03df2b9c
|
@ -12,7 +12,7 @@ debug() {
|
||||||
|
|
||||||
# Validate Github hook
|
# Validate Github hook
|
||||||
signature=$(echo -n "$1" | openssl sha1 -hmac "$GITHUB_SECRET" | sed -e 's/^.* //')
|
signature=$(echo -n "$1" | openssl sha1 -hmac "$GITHUB_SECRET" | sed -e 's/^.* //')
|
||||||
[ "$signature" != "$x_hub_signature" ] && die "bad hook signature: expecting $x_hub_signature and got $signature"
|
[ "sha1=$signature" != "$x_hub_signature" ] && die "bad hook signature: expecting $x_hub_signature and got $signature"
|
||||||
|
|
||||||
# Validate parameters
|
# Validate parameters
|
||||||
payload=$1
|
payload=$1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user