Use Environment variable in *.toml?

is there any way to get environment variables to *.toml files? i currently want to move the whole deploy stuff to a github action, but struggle because i need to login with username/password to my baremetal server - wich does make it a little bit tricky - i sure dont want to have the password in the deploy.toml file. i rather want it in a github action secret.
i tried tricking github by this:

sed -in "s/^password.*/password=$SERVER_PASSWORD/g" deploy.toml

but github is cleverer then i am an replaces it with ***

Any idea how i get this pw to the deploy.toml without pushing it to github?

Cheers and thanks

hi again @pcace - I suggest looking at my comment on the other question as I think the third link there provides the answer you are looking for.