From 7c3515dfb1921bca0b488ad74c3dcbe7adc01d4c Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Sun, 12 Oct 2025 15:27:37 -0400 Subject: [PATCH] fix: Output compact (one-line) JSON --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 8009cb46..9bc64e68 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=$(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 + printf '%s' "value=$(printf '%s' '${{ steps.restore.outputs.value }}' | jq -c '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