Closed blackandred closed 4 years ago
Fix added - still need tests coverage for that case.
Done.
Fix revereted. Not a bug.
Use case:
:hello:
environment:
FIRST: "First"
SECOND: "Second"
THIRD: "Escaped one"
ALL: ${FIRST} ${SECOND} \${THIRD}
steps: |
echo "${ALL}"
First Second ${THIRD}
Proper fix should be: All variables coming from os.environ
should have escaped $
The dollar sign is not properly escaped, so it is evaluated. Best case to reproduce is to try to pass eg. htpasswd generate password to command inside
sh()
via environment variables - it's impossible.