aboutsummaryrefslogtreecommitdiffstats
path: root/request.sh
blob: cf8172185f5430c9431645c409782a3046360ab4 (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 "$DATA" http://localhost:8093/

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