mirror of
https://github.com/adnanh/webhook.git
synced 2025-10-04 21:51:02 +00:00
add run-as to run hook in other user context
This commit is contained in:
parent
f187592147
commit
af3ceffdac
5 changed files with 47 additions and 0 deletions
|
@ -566,6 +566,7 @@ func (h *HooksFiles) Set(value string) error {
|
|||
type Hook struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
ExecuteCommand string `json:"execute-command,omitempty"`
|
||||
RunAs string `json:"run-as,omitempty"`
|
||||
CommandWorkingDirectory string `json:"command-working-directory,omitempty"`
|
||||
ResponseMessage string `json:"response-message,omitempty"`
|
||||
ResponseHeaders ResponseHeaders `json:"response-headers,omitempty"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue