Access CI configuration from Custom Executor

Hi,

I’ve got quirky project requirements that forces me to use a custom executor for the project in question. The custom executor generates scripts for the different run stages e.g. get_sources and build_script found in the run_exec script. The stage build_script (or step_*) for instance expects instructions from the CI configuration (.gitlab-ci.yaml from the project directory) but I can’t find any way to access this section of the CI configuration from run_exec script and it seems like this information only gets embedded into the generated script that gets passed to the build_script stage. It seems like I am only able to access the variable section of the CI configuration (through the environment variables).

Is there another way to access the CI configuration? It seems strange if this information only gets embedded into generic generated scripts since it’s a custom executor after all. =)

Thanks in advance,

/Mattias