GitLab Variables used in file transform

Hello!

On our CI/CD pipeline, we are deploying a .NET app using MSbuild to an on-prem server and a shell executor. I’m attempting to use the gitlab variables to pass app secrets to the YML, and replace sensitive web.config entries with these variables.

It is my understanding that Kubernetes has access to K8S_SECRET_ variables - is there any way to pass variables to transform a web.config with our implementation?

Thank you!
Tyler