[ { "id": "dadi-staging-webhook", "http-methods": ["POST"], "execute-command": "/etc/webhook/dadi-staging-hook.sh", "command-working-directory": "/etc/webhook/", "response-message": "I got the payload!", "response-headers": [ { "name": "Access-Control-Allow-Origin", "value": "*" } ], "pass-arguments-to-command": [ { "source": "payload", "name": "repository.name" }, { "source": "payload", "name": "ref" } ], "trigger-rule": { "and": [ { "match": { "type": "payload-hmac-sha1", "secret": "${WEBHOOK_SECRET}", "parameter": { "source": "header", "name": "X-Hub-Signature" } } } ] } }, ]