Commit 118d38c5 authored by lukasburgey's avatar lukasburgey
Browse files

Don't execute deployments without userinfo

parent f9046e0b
Pipeline #110378 passed with stages
in 54 seconds
......@@ -104,6 +104,10 @@ func (sink *Sink) handleDep(dep deps.Dep) (output scripts.Output, err error) {
Answers: dep.Answers,
}
if dep.User.UserInfo == nil {
err = fmt.Errorf("Deployment is unfit for execution: user.userinfo is null! Script input would've been:\n%s", input)
}
iBytes, err := input.Marshal()
if err != nil {
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment