mirror of
https://github.com/adnanh/webhook.git
synced 2025-06-05 12:12:29 +00:00
Update HTTP methods to sanitize user input
This commit is contained in:
parent
c38778ba62
commit
a03e812615
5 changed files with 15 additions and 7 deletions
|
@ -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":
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
- id: github
|
||||
http-methods:
|
||||
- POST
|
||||
- "Post "
|
||||
trigger-rule:
|
||||
and:
|
||||
- match:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue