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

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