Update HTTP methods to sanitize user input

This commit is contained in:
Cameron Moore 2019-12-26 14:51:40 -06:00
parent c38778ba62
commit a03e812615
5 changed files with 15 additions and 7 deletions

View file

@ -3,7 +3,7 @@
"id": "github",
"execute-command": "{{ .Hookecho }}",
"command-working-directory": "/",
"http-methods": ["POST"],
"http-methods": ["Post "],
"include-command-output-in-response": true,
"trigger-rule-mismatch-http-response-code": 400,
"pass-environment-to-command":

View file

@ -1,6 +1,6 @@
- id: github
http-methods:
- POST
- "Post "
trigger-rule:
and:
- match: