mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-06 15:02:20 +02:00
fix(security): address CodeQL findings in migration candidate
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"""Real Chromium regressions for the corrected CodeQL data-flow contracts."""
|
||||
import json
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_codeql_security_browser_contracts():
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
result = subprocess.run(
|
||||
["node", "tests/codeql_security_browser.cjs"], cwd=root,
|
||||
capture_output=True, text=True, timeout=60,
|
||||
)
|
||||
assert result.returncode == 0, result.stdout + result.stderr
|
||||
assert json.loads(result.stdout) == {
|
||||
"chat": True, "markdown": True, "svg": True,
|
||||
"menus": True, "admin": True, "bootstrap": True,
|
||||
}
|
||||
Reference in New Issue
Block a user