diff --git a/models/actions/run_list.go b/models/actions/run_list.go index f9d841722794..109d4446d82e 100644 --- a/models/actions/run_list.go +++ b/models/actions/run_list.go @@ -45,6 +45,9 @@ func (runs RunList) LoadTriggerUser(ctx context.Context) error { run.TriggerUser = user_model.NewActionsUser() } else { run.TriggerUser = users[run.TriggerUserID] + if run.TriggerUser == nil { + run.TriggerUser = user_model.NewGhostUser() + } } } return nil