Skip to content

Escape backslashes in CI summary table cells - #64

Merged
jochen-testingbot merged 1 commit into
mainfrom
fix/ci-summary-escape-backslash
Oct 29, 2026
Merged

jochen-testingbot merged 1 commit into
mainfrom
fix/ci-summary-escape-backslash

Conversation

@jochen-testingbot

Copy link
Copy Markdown
Contributor

Fixes code scanning alert #4 (js/incomplete-sanitization).

cell() in src/utils/ci_summary.ts escaped pipes but not backslashes, so an error message containing \| was written as \\|: an escaped backslash followed by a bare pipe, which splits the Markdown table in the job summary. Backslashes and pipes are now escaped in one pass.

Adds a test with an error message containing C:\tmp\| x.

A backslash before a pipe in an error message turned the escaped \| into \\|,
so the pipe split the Markdown table. Fixes code scanning alert #4
(js/incomplete-sanitization).
@jochen-testingbot
jochen-testingbot merged commit 37b2ee4 into main Oct 29, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant