Skip to content

Pin one exact Mermaid version across report renderers #171

Closed

Description

@lanyue-llk

Child of #98 for one item.

Reports load Mermaid from cdn.jsdelivr.net/npm/mermaid@11 with no exact version, in trajectory_replay/webarena_report.py, web_fetch/report.py and web_search/report.py. Check for other renderers too, because this list comes from the #98 audit. An unpinned script can change a published diagram without any change to the report.

Scope

  • Define one exact Mermaid version in one shared owner and use it in every renderer.
  • Check whether reports need Subresource Integrity, and add it if the shared owner can apply it to all of them.
  • Add a test that rejects an unpinned Mermaid URL.
  • Update golden route hashes only where the script URL changes, and explain that in the PR. Stored and published reports are not rebuilt.

Part of #98

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions