Deploy PR to CICD now produces empty JSON #1859
-
When we deploy a PR to Environment we get the following error Unexpected error when running action. Error Message: Cannot bind argument to parameter 'deploymentEnvironmentsJson' because it is an empty string., StackTrace: at , /home/runner/work/_temp/ce3cdba0-0acf-4c21-81a5-edbe7f2a52dc.ps1: line 3 <- at , /home/runner/work/_actions/microsoft/AL-Go/2cc8f6277433dbc2d7e066f9037d2084637c6347/Actions/Invoke-AlGoAction.ps1: line 21 <- at , /home/runner/work/_temp/ce3cdba0-0acf-4c21-81a5-edbe7f2a52dc.ps1: line 2 <- at , : line 1 On initialization the following is mentioned Skip output 'deploymentEnvironmentsJson' since it may contain secret. Full log attached |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Can you try uploading the log again? I can't download it |
Beta Was this translation helpful? Give feedback.
-
From the attached logs for Initialization job:
It looks like there is a secret value that matches part of the environment name. And GitHub refuses add it to the output of the job. Example: if you have a GitHub secret with value "ABCD" and your environment name is "ABCD_PR_Test", then GitHub will mask the "ABCD" part (as seen in the logs) and refuse to add the whole value of the output. |
Beta Was this translation helpful? Give feedback.
From the attached logs for Initialization job:
It looks like there is a secret value that matches part of the environment name. And GitHub refuses add it to the output of the job.
Example: if you have a GitHub secret with value "ABCD" and your environment name is "ABCD_PR_Test", then GitHub will mask the "ABCD" part (as seen in the logs) and refuse to add the whole value of the output.