aboutsummaryrefslogtreecommitdiffstats
path: root/request.sh
blob: 6c732cfff543f63e2a819db34d334b4967ce3312 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

DATA="payload=`cat $1`"

echo $DATA

hash=$(echo -n "$DATA" | openssl dgst -sha1 -hmac "$2" | awk '{print $2}')
echo $hash

echo -n "$DATA" > ~/repos/supybot-github/cmpr

curl --header "X-GitHub-Event: $1" --header "X-Hub-Signature: sha1=$hash" --header "X-GitHub-Delivery: nil" --data-urlencode "$DATA" http://localhost:8093/

© 2014-2024 Faster IT GmbH | imprint | privacy policy