Skip to content

test: remove executable interpolation from reporting preload - #11

Merged
anilkreddy merged 1 commit into
mainfrom
fix/static-reporting-preload
Nov 15, 2026
Merged

anilkreddy merged 1 commit into
mainfrom
fix/static-reporting-preload

Conversation

@anilkreddy

@anilkreddy anilkreddy commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

The standalone reporting test generated executable preload JavaScript with interpolated scenario/path data. CodeQL reported js/bad-code-sanitization on main (alert 1, alert 2, alert 3). Copy a static ESM fixture verbatim instead, pass the allowlisted scenario through the child environment, and derive the request-counter path beside the fixture. pathToFileURL keeps the preload import portable.

This is a test-only fix: existing standalone assertions, production source, runtime bundle, dependencies, permissions, and API behavior are unchanged. No alerts are dismissed and no scan exclusions are added.

Validation on 0d2255792a39cae20cd2539784cbdb12e484130b (Node 24.21.0, pnpm 12.6.0, published notification-contract 0.0.6):

  • pnpm install --frozen-lockfile and full pnpm quality: PASS.
  • Format, lint, strict types, compatibility contracts, coverage, all 6 standalone reporting-bundle scenarios, byte-for-byte bundle consistency, public scan (66 files), and production audit: PASS; no known audit vulnerabilities.
  • 312 tests in 12 files; coverage: statements 99.12%, branches 97.48%, functions 98.57%, lines 99.76%. Thresholds and production coverage scope unchanged.
  • Runtime bundle SHA-256 remains 540d42a2072000d1ffa884c22a7eac933233a5a584c6831be85a1472d1e7744e.
  • git diff --check: PASS. Independent parent diff review: PASS.

Hosted validation: CI 43680398984 PASS (quality plus Linux, Windows, macOS); CodeQL 43680398975 PASS. Processed PR analysis 2169925223, merge ref 71f7222f593559a55d6beb5cdd68d0c44733d674 (parents are exact base and head), reports 0 results / 87 rules, empty error/warning, and 0 open PR alerts.

Owner diff review and post-merge verification completed; the actual processed findings were checked separately from workflow status. Companion test-only PR: ccv2-build #10.

No release tags, publication, deployment, webhook sends, real SAP operations, or cleanup enablement occurred.

Final verification: merged main 1af852b9a00e981da4ea13565bb18c7ce7fda27f passed CI 43680764774 and CodeQL 43680764683. Exact-main analysis 2169935725 has zero findings and empty error/warning fields; open main alerts are zero. The final five-action registry replay passed all 24 records against the merged commits. No runtime bundle, dependency, production code or scan exclusions changed.

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