From 24eb051809ae165bbfd3b5b62f332ec0f7b03cd0 Mon Sep 17 00:00:00 2001 From: ukimsanov Date: Mon, 3 Aug 2026 03:48:36 -0700 Subject: [PATCH] fix: exclude compiled docs embed from CodeQL --- .github/codeql/codeql-config.yml | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml index 4cbbf08180..60bdd281df 100644 --- a/.github/codeql/codeql-config.yml +++ b/.github/codeql/codeql-config.yml @@ -6,6 +6,13 @@ name: "Hyperframes CodeQL config" queries: - uses: security-extended +# The docs Reference Project's live embed is a generated publish artifact. It +# inlines the same HyperFrames runtime that CodeQL already analyzes at source, +# so scanning the compiled copy reports runtime bridge and URL-normalization +# patterns as new code. Exclude only this immutable generated file. +paths-ignore: + - "examples/docs-reference-project/live/index.html" + # Per-rule path filters. The intent is to silence rules that have known false # positives on specific file shapes (generated test artifacts, CDN-script test # fixtures, functional-cleanup regex) WITHOUT excluding those paths from all @@ -62,22 +69,3 @@ query-filters: id: js/insecure-randomness paths: - "packages/producer/tests/**/output/compiled.html" - - # The docs Reference Project's live embed is a generated publish artifact. - # It inlines the same HyperFrames runtime that CodeQL already analyzes at its - # source, so runtime bridge and URL-normalization patterns otherwise appear as - # new alerts on the generated bundle. Keep the exceptions query-specific and - # limited to this one immutable example instead of excluding the path from - # analysis wholesale. - - exclude: - id: js/missing-origin-check - paths: - - "examples/docs-reference-project/live/index.html" - - exclude: - id: js/unvalidated-dynamic-method-call - paths: - - "examples/docs-reference-project/live/index.html" - - exclude: - id: js/incomplete-url-scheme-check - paths: - - "examples/docs-reference-project/live/index.html"