fix: exclude compiled docs embed from CodeQL

This commit is contained in:
ukimsanov
2026-08-03 15:02:57 -07:00
parent 167e372aad
commit 24eb051809
+7 -19
View File
@@ -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"