We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f038449 commit eaf51ebCopy full SHA for eaf51eb
1 file changed
internal/server/server.go
@@ -849,6 +849,7 @@ func handleHook(ctx context.Context, h *hook.Hook, r *hook.Request, w http.Respo
849
}
850
851
// 使用 exec.CommandContext 替代 exec.Command,支持超时和取消
852
+ // #nosec G204 G702 -- cmdPath 来自 makeSureCallable:经 exec.LookPath 解析,且已通过 validator.ValidateCommandPath 白名单校验
853
cmd := exec.CommandContext(ctx, cmdPath)
854
cmd.Dir = h.CommandWorkingDirectory
855
0 commit comments