code: func NewPayloadContextFromTask(node *api.NodeDescription, t *api.Task, dependencies exec.DependencyGetter) (ctx PayloadContext) {
  	return PayloadContext{
  		Context:           NewContext(node, t),
  		t:                 t,
  		restrictedSecrets: secrets.Restrict(dependencies.Secrets(), t),
  		restrictedConfigs: configs.Restrict(dependencies.Configs(), t),
  	}
  }
docs: // NewPayloadContextFromTask returns a new template context from the data
  // available in the task and the node where it is scheduled to run.
  // This context also provides access to the configs
  // and secrets that the task has access to. The provided context can then
  // be used to populate runtime values in a templated config or secret.