Skip to content

fix(shots): site shots splice page code through jsLiteral - #121

Merged
antonarnaudov merged 1 commit into
mainfrom
fix/shots-js-literal
Oct 14, 2026
Merged

antonarnaudov merged 1 commit into
mainfrom
fix/shots-js-literal

Conversation

@antonarnaudov

Copy link
Copy Markdown
Contributor

Two values in scripts/extension-shots/site-shots.ts (from #106) went into page code through JSON.stringify alone — CodeQL alerts 66/67 (js/bad-code-sanitization). They now use the existing jsLiteral. Dev-only script; the open alerts block tagging.

🤖 Generated with Claude Code

Two values were written into page code with JSON.stringify alone, which CodeQL flags (js/bad-code-sanitization, alerts 66 and 67). The shot scripts already export jsLiteral for exactly this.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@antonarnaudov
antonarnaudov merged commit 07deb90 into main Oct 14, 2026
13 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