mirror of
https://github.com/adnanh/webhook.git
synced 2025-06-22 20:38:32 +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
10
setuser_windows.go
Normal file
10
setuser_windows.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package main
|
||||
|
||||
import "os/exec"
|
||||
|
||||
func setUser(cmd *exec.Cmd, username string) {
|
||||
// NOOP: Windows doesn't have setuid setgid equivalent to the Unix world.
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue