This might mean using a structure for the config, maybe something like:
source_repo: url: http://gitlab..... ref: main ...
This has to be tested to make sure it bypasses the caches of github, for example by setting up a github pipeline that does a deployment right after a merge, and making sure it's getting the latest commit, and not the previous "cached" one.