File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export default async function () {
2121 const repoWithOwner = core . getInput ( "repository" , { required : true } ) ;
2222 const token = core . getInput ( "token" , { required : true } ) ;
2323 const cachedFilings : ( ResolvedFiling | RepeatedFiling ) [ ] = JSON . parse (
24- core . getInput ( "cached_results " , { required : false } ) || "[]"
24+ core . getInput ( "cached_filings " , { required : false } ) || "[]"
2525 ) ;
2626 core . debug ( `Input: 'findings: ${ JSON . stringify ( findings ) } '` ) ;
2727 core . debug ( `Input: 'repository: ${ repoWithOwner } '` ) ;
Original file line number Diff line number Diff line change 5454 # If cached data is a list of Finding objects, each with 'issueUrl' keys (i.e. v1),
5555 # convert to a list of (partial) Result objects, each with 'findings' and 'issue' keys (i.e. v2).
5656 # Otherwise, re-output as-is.
57- 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
57+ 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
5858 - if : ${{ inputs.login_url && inputs.username && inputs.password && !inputs.auth_context }}
5959 name : Authenticate
6060 id : auth
You can’t perform that action at this time.
0 commit comments