From 62f2bb4093e02f4413a456234dd2aae420e3ec69 Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Sun, 12 Oct 2025 14:50:41 -0400 Subject: [PATCH] fix: Fix escaping and parsing issues in the v1-to-v2 cache migration step --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index d6bdb302..8009cb46 100644 --- a/action.yml +++ b/action.yml @@ -54,7 +54,7 @@ runs: # If cached data is a list of Finding objects, each with 'issueUrl' keys (i.e. v1), # convert to a list of (partial) Result objects, each with 'findings' and 'issue' keys (i.e. v2). # Otherwise, re-output as-is. - echo "value=$(echo '${{ steps.restore.outputs.value }}' | jq 'if (type == "array" and length > 0 and .[0] | has("issueUrl")) then map({findings: [del(.issueUrl)], issue: {url: .issueUrl}}) else . end' )" >> $GITHUB_OUTPUT + echo "value=$(printf '%s' '${{ steps.restore.outputs.value }}' | jq 'if (type == "array" and length > 0 and (.[0] | has("issueUrl"))) then map({findings: [del(.issueUrl)], issue: {url: .issueUrl}}) else . end' )" >> $GITHUB_OUTPUT - if: ${{ inputs.login_url && inputs.username && inputs.password && !inputs.auth_context }} name: Authenticate id: auth