webhook/internal/hook/testdata/unrecognized.yaml
Barak Amar d7367bcb8b Fix error on unrecognized configuration keys
- Error while loading configuration with unrecognized keys
- Do not start if failed to load configuration from file
2022-10-11 10:04:37 +03:00

28 lines
698 B
YAML

- id: webhook
unrecognized-execute-command: /home/adnan/redeploy-go-webhook.sh
command-working-directory: /home/adnan/go
response-message: I got the payload!
response-headers:
- name: Access-Control-Allow-Origin
value: '*'
pass-arguments-to-command:
- source: payload
name: head_commit.id
- source: payload
name: pusher.name
- source: payload
name: pusher.email
trigger-rule:
and:
- match:
type: payload-hmac-sha1
secret: mysecret
parameter:
source: header
name: X-Hub-Signature
- match:
type: value
value: refs/heads/master
parameter:
source: payload
name: ref