From f5c119fdaf444fc0b1b59c1e07fd32a5f6ddf069 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Tue, 1 Oct 2024 22:29:21 +0200 Subject: Initial commit --- examples/sample_push_event.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 examples/sample_push_event.sh (limited to 'examples/sample_push_event.sh') 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 -- cgit v1.2.3