Files
kevinveenbirkenbachandClaude Opus 5.5 dd0f42f582 fix(utils): render cache config and test templates with select_autoescape
The cache renderer and twelve unit tests built their Jinja2
environments with autoescape=False (CodeQL py/jinja2/autoescape-false,
alert 958 and fifteen test alerts) behind `# noqa: S701` markers. They
now use select_autoescape(default_for_string=False), the form the
repository already uses in over forty other modules. Every template
the cache renderer loads ends in .j2, so nothing is escaped: its
output stays byte-identical for all five distros, also with markup
characters injected into every variable, while a control run with
autoescape=True differs in exactly those injected cases.

🎯 Fix: 95 %
💥 Break: 2 %
💸 Cost: –
⏱️ Time: –
🛡️ Security: 100 %
🏆 Score: 93
🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 07:43:11 +00:00
..