You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this workflow element (To Reproduce section) to display the terraform plan, the variable ${{ steps.show-plan.outputs.stdout }} contains a string with special characters plus json elements.
How to avoid this issue? Probably I need to encode the string somehow ..
Tried including result-encoding: string but same result.
By the way, about a month ago this workflow worked fine.
Describe the bug
SyntaxError: Unexpected token '{'
at new AsyncFunction (<anonymous>)
at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:15143:16)
at main (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:15236:26)
at /home/runner/work/_actions/actions/github-script/v6/dist/index.js:15217:1
at /home/runner/work/_actions/actions/github-script/v6/dist/index.js:15268:3
at Object.<anonymous> (/home/runner/work/_actions/actions/github-script/v6/dist/index.js:15[271](https://github.com/parloa/parloa-infra/actions/runs/5422135137/jobs/9858405881#step:12:272):12)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
Error: Unhandled error: SyntaxError: Unexpected token '{'
A clear and concise description of what the bug is.
The values you're injecting into that template string are likely invalid Javascript and aren't being escaped correctly.
I'd recommend setting those context values as environment variables and referencing them via process.env and the regular ${} template literal string interpolation.
Hello!
I use this workflow element (To Reproduce section) to display the terraform plan, the variable
${{ steps.show-plan.outputs.stdout }}
contains a string with special characters plus json elements.How to avoid this issue? Probably I need to encode the string somehow ..
Tried including
result-encoding: string
but same result.By the way, about a month ago this workflow worked fine.
Describe the bug
To Reproduce
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: