Mark a semgrep false positive on the Executions error message
CI / Lint (eslint) (pull_request) Successful in 19s
CI / Test (jest) (pull_request) Successful in 25s
CI / Security (npm audit) (pull_request) Successful in 11s
CI / Integration (api) (pull_request) Successful in 2m29s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m41s
CI / UI screenshots (before/after) (pull_request) Successful in 2m26s
CI / UI (playwright) (pull_request) Successful in 3m16s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped

The new ?search= deep link let semgrep's raw-html-concat rule trace
location.search into the request and on to the error text it shows.
That text goes through esc(), which the registry rule does not know;
Pulse's own pulse-innerhtml-unescaped rule checks the escaping.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-23 19:27:39 -05:00
1 parent 966c2be5cc
commit 44e9f041f0
1 file changed
+3
+3
View File
@@ -181,6 +181,9 @@
function listHtml(view) {
const st = state[view];
if (st.error) {
// The registry rule traces ?search= (deep link) into the request and on to this
// error text, but it does not know esc(); pulse-innerhtml-unescaped checks that.
// nosemgrep: javascript.browser.security.raw-html-concat.raw-html-concat
return '<div class="lt-alert lt-alert--error"><span class="lt-alert-icon">&#x26a0;</span>' +
'<div class="lt-alert-body"><div class="lt-alert-title">Failed to load executions</div>' +
'<div class="lt-alert-msg">' + esc(st.error) + '</div></div></div>';