Skip to content

test: remove executable interpolation from reporting preload - #10

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 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 0a671c9d766b1129ca7662f61738f664f69ae8f5 (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, immutable compatibility contracts, coverage, all 5 standalone reporting-bundle scenarios, byte-for-byte bundle consistency, public scan (66 files), and production audit: PASS; no known audit vulnerabilities.
  • 209 tests in 10 files; coverage: statements 100%, branches 98.60%, functions 100%, lines 100%. Thresholds and production coverage scope unchanged.
  • Runtime bundle SHA-256 remains 2f0f11dfe5318bafd8973cfc110714030b412f503f9303bf0a69101dbeeeb76a.
  • git diff --check: PASS. Independent parent diff review: PASS.

Hosted validation: CI 43680400099 PASS (quality plus Linux, Windows, macOS); CodeQL 43680400095 PASS. Processed PR analysis 2169924975, merge ref b12cfa504bfb933a55b0205c241aa5036f7d3a0a (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-deploy #11.

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

Final verification: merged main fc65ee281f39b98d2cecad36ff93d40cf055fbc2 passed CI 43680545359 and CodeQL 43680545418. Exact-main analysis 2169929303 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