From 02c7b9932347ad6eb94442ea26ec040933d4b8e5 Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Tue, 21 Oct 2025 15:16:17 -0400 Subject: [PATCH] fix(Find): Replace single quotes in the 'html' field because they break single-quoted shell strings --- .github/actions/find/src/findForUrl.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/find/src/findForUrl.ts b/.github/actions/find/src/findForUrl.ts index c194645..5e2cd7e 100644 --- a/.github/actions/find/src/findForUrl.ts +++ b/.github/actions/find/src/findForUrl.ts @@ -16,12 +16,12 @@ export async function findForUrl(url: string, authContext?: AuthContext): Promis findings = rawFindings.violations.map(violation => ({ scannerType: 'axe', url, - html: violation.nodes[0].html, - problemShort: violation.help.toLowerCase().replace(/[']/g, '’'), - problemUrl: violation.helpUrl.replace(/[']/g, '’'), + html: violation.nodes[0].html.replace(/'/g, "'"), + problemShort: violation.help.toLowerCase().replace(/'/g, "'"), + problemUrl: violation.helpUrl.replace(/'/g, "'"), ruleId: violation.id, - solutionShort: violation.description.toLowerCase().replace(/[']/g, '’'), - solutionLong: violation.nodes[0].failureSummary?.replace(/[']/g, '’') + solutionShort: violation.description.toLowerCase().replace(/'/g, "'"), + solutionLong: violation.nodes[0].failureSummary?.replace(/'/g, "'") })); } catch (e) { // do something with the error