summaryrefslogtreecommitdiff
path: root/examples/sample_push_event.sh
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-10-01 22:29:21 +0200
committerLinnnus <[email protected]>2024-10-01 22:29:21 +0200
commitf5c119fdaf444fc0b1b59c1e07fd32a5f6ddf069 (patch)
treefd63a803e3ffa3b9e1c05549ae29eeace7adbcf0 /examples/sample_push_event.sh
Initial commit
Diffstat (limited to 'examples/sample_push_event.sh')
-rwxr-xr-xexamples/sample_push_event.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/sample_push_event.sh b/examples/sample_push_event.sh
new file mode 100755
index 0000000..362d621
--- /dev/null
+++ b/examples/sample_push_event.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Expects service to be listening on socket
+# Expects to be run from project root
+# Payload signed with 'mysecret'
+
+curl --unix-socket /tmp/websocket-listener.sock http://localhost/ \
+ -X POST \
+ --data @./examples/sample_push_payload.json \
+ -H 'X-Github-Event: push' \
+ -H 'X-Hub-Signature-256: sha256=6803d2a3e495fc4bd286d428ea4b794476a1ff1b72bbea4dfafd2477d5d89188' \
+ -H 'Content-Length: 7413' \
+ -H 'Content-Type: application/json' \
+ -v