Runner hosted in openshift with custom toml config for proxy

Gitlabrunner hosted on openshift cluster with proxy. we configured custom toml file for proxy that includes git config --… as pre_get_sources_script. But unfortunately, repository not able to pull and got below error msg.

fatal: unable to access ‘https://gitlab.com/[MASKED]/bw.git/’: Failed to connect to gitlab.com port 443: Connection timed out

kindly advise.