From 8c50adc01229031db883b50f23f79af4b9186a31 Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Sun, 12 Oct 2025 14:50:41 -0400 Subject: [PATCH 1/3] 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 40c2360..86472cf 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 From 0a808b418aaee1958afb3ceaf40b310ab80f1aab Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Sun, 12 Oct 2025 15:27:37 -0400 Subject: [PATCH 2/3] 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 86472cf..35eeab2 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 From b7ef083b00f550da76d77cea98885ba3592d3837 Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Mon, 13 Oct 2025 11:03:57 -0400 Subject: [PATCH 3/3] fix: Read the 'cached_filings' input, not 'cached_results' --- .github/actions/file/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/file/src/index.ts b/.github/actions/file/src/index.ts index fc10811..0c1304b 100644 --- a/.github/actions/file/src/index.ts +++ b/.github/actions/file/src/index.ts @@ -21,7 +21,7 @@ export default async function () { const repoWithOwner = core.getInput("repository", { required: true }); const token = core.getInput("token", { required: true }); const cachedFilings: (ResolvedFiling | RepeatedFiling)[] = JSON.parse( - core.getInput("cached_results", { required: false }) || "[]" + core.getInput("cached_filings", { required: false }) || "[]" ); core.debug(`Input: 'findings: ${JSON.stringify(findings)}'`); core.debug(`Input: 'repository: ${repoWithOwner}'`);