`Error reading JToken from JsonReader. Path '', line 0, position 0.`
AdvancedTroubleshootingExpressions, Outputs, Matrix & Conditions
Answer
Likely causes → fromJSON(''): the output feeding fromJSON is empty because the upstream job or step was skipped, failed or the output name is wrong.
Diagnose → Check upstream job status and whether the output is set.
Fix → Fix the output; guard with if on non-empty; or provide a default: fromJSON(needs.plan.outputs.matrix || '{"include":[]}'), plus an empty-matrix guard.
Prevent → Validate JSON in the producing step with jq -e ..
More on Expressions, Outputs, Matrix & Conditions
A downstream job reads `needs.build.outputs.digest` and gets an empty string.Intermediate`Warning: Skip output 'image' since it may contain secret.`Advanced`Error: Unable to process file command 'output' successfully. Error: Invalid format ' "items": ['`Intermediate`Error when evaluating 'strategy' for job 'build'. .github/workflows/ci.yml (Line: 30, Col: 15): Matrix vector 'service' does not contain any values`Intermediate`if: github.event.inputs.deploy == true` never runs the step, even when the box is ticked.BeginnerDeploy job is always "skipped" even though build succeeded.Intermediate