You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Follow up: align vulnerability report HTML asset references with selected graph output format #2011
The vulnerability report page generator currently hardcodes SVG asset references in the generated HTML, but the graph generator only writes SVG files when --svg-output is enabled.
This can produce broken image links in at least two cases:
page generation runs without SVG graph generation
graphs are generated with PNG output only
Rationale
The HTML template and the graph writer should stay aligned so the generated page never points to files that were not created.
Affected area
scripts/vulnerability_report.py
generate_page()
main() / page-generation call site
related argument validation in check_args() if SVG must be required for page generation
Required changes
Implement one of the following approaches:
Require SVG output whenever page generation is requested, or
Pass the selected output format into the page template and reference the generated asset type consistently
Also ensure page-only runs cannot emit HTML that references missing graph files.
Acceptance criteria
The generated HTML references files that are actually produced by the selected graph output settings
--generate-page cannot succeed with broken graph links caused by format mismatch
The logic between graph generation and page rendering is consistent and easy to follow
Activity