From bb534569fee084d82005c702d322fcd1098b8d25 Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Wed, 3 Dec 2025 19:28:36 -0500 Subject: [PATCH 1/3] fix: Remove environment variables that could grow too large --- action.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index c4ee5bd..0481e7c 100644 --- a/action.yml +++ b/action.yml @@ -109,8 +109,8 @@ runs: uses: actions/github-script@v8 with: script: | - const filings = JSON.parse(process.env.FILINGS || '[]'); - const fixings = JSON.parse(process.env.FIXINGS || '[]'); + const filings = JSON.parse('${{ steps.file.outputs.filings }}' || '[]'); + const fixings = JSON.parse('${{ steps.fix.outputs.fixings }}' || '[]'); const fixingsByIssueUrl = fixings.reduce((acc, fixing) => { if (fixing.issue && fixing.issue.url) { acc[fixing.issue.url] = fixing; @@ -125,9 +125,6 @@ runs: } core.setOutput('results', JSON.stringify(results)); core.debug(`Results: ${JSON.stringify(results)}`); - env: - FILINGS: ${{ steps.file.outputs.filings }} - FIXINGS: ${{ steps.fix.outputs.fixings }} - name: Save cached results uses: ./../../_actions/github/accessibility-scanner/current/.github/actions/gh-cache/cache with: From 2b51e8ff08a7567831cbc7da1751141822094239 Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Wed, 3 Dec 2025 20:00:06 -0500 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20Don=E2=80=99t=20re-parse=20an=20outp?= =?UTF-8?q?ut=20that=20is=20already=20JSON?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 0481e7c..b2710f1 100644 --- a/action.yml +++ b/action.yml @@ -109,8 +109,8 @@ runs: uses: actions/github-script@v8 with: script: | - const filings = JSON.parse('${{ steps.file.outputs.filings }}' || '[]'); - const fixings = JSON.parse('${{ steps.fix.outputs.fixings }}' || '[]'); + const filings = ${{ steps.file.outputs.filings || '' }} || []; + const fixings = ${{ steps.fix.outputs.fixings || '' }} || []; const fixingsByIssueUrl = fixings.reduce((acc, fixing) => { if (fixing.issue && fixing.issue.url) { acc[fixing.issue.url] = fixing; From 565212b2c1e5bd0dc7b023e44dfce1bbce608dad Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Thu, 4 Dec 2025 07:47:13 -0500 Subject: [PATCH 3/3] fix: Ensure an empty string is used as the fallback --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index b2710f1..3e3ee60 100644 --- a/action.yml +++ b/action.yml @@ -109,8 +109,8 @@ runs: uses: actions/github-script@v8 with: script: | - const filings = ${{ steps.file.outputs.filings || '' }} || []; - const fixings = ${{ steps.fix.outputs.fixings || '' }} || []; + const filings = ${{ steps.file.outputs.filings || '""' }} || []; + const fixings = ${{ steps.fix.outputs.fixings || '""' }} || []; const fixingsByIssueUrl = fixings.reduce((acc, fixing) => { if (fixing.issue && fixing.issue.url) { acc[fixing.issue.url] = fixing;