Submodule Initialisation on CI

To get sub-modules to work do I need to use a deploy key or is there a config option in the .gitlib-ci.yml file that can be set to automatically do this?