#66 introduced the fix to set all RHC_WORKER_* environment variables in the script execution. Currently the variables can get to the script only through it's yaml envelope (they are passed to the script by rhc-worker-script). The variables are in internal repository and changes are subjected to review.
It's not ideal, if someone runs the script without worker it is easy to inject some malicious variable to the runtime.