-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quotes Not Supported For Secrets or Build-Args #245
Comments
@malkam03 As explained in the README, quote signs need to be doubled for escaping. |
Ah, sorry beginners error. Thank you for your prompt response! |
@crazy-max double escaping the quotes is not working either. Maybe I'm doing something wrong? I think that this can be added more specifically to the documentation. If I can make it work and you accept MR's I can create one. I tried both using it with the secret or testing an explicit string: SERVER=${{ secrets.SERVER }} # setting the value of SERVER secret to {\\"some\\":\\"value\\",\\"goes\\":\\"here\\"}
SERVER={\\"some\\":\\"value\\",\\"goes\\":\\"here\\"} |
@malkam03 As I said, quote signs need to be doubled for escaping. So in your case:
|
Ah, is double quote not double escaped. Got it, thank you! |
Sorry, that's not working either @crazy-max, same error and same tests:
|
@malkam03 Try with |
Yes, that works! Thank you very much! I created a PR if it works for someone else #246. |
Behavior
When you provide a secret value with quotes, like a JSON. The action fails with:
Escaping the quotes or using single quotes doesn't help either, tried:
Steps to reproduce this issue
SERVER
with value{"host":"host","user":"user","pass":"pass"}
Expected behaviour
Actual behaviour
Configuration
Logs
Can't do this, the logs are not public.
The text was updated successfully, but these errors were encountered: