Skip to content

evidence-pages.yml writes the generated branch on a workflow_dispatch from any ref (add a main-only guard) #4925

Closed

Description

@squid-protocol

Found while reviewing #4924 (which added a main-only guard to its new publish-blockers job). .github/workflows/evidence-pages.yml publishes evidence pages to the shared generated branch. It is triggered by push: main (safe) and workflow_dispatch, which has no ref check. A manual dispatch from a feature branch would overwrite generated with that branch's pages.

Fix: run the publish step only when github.ref == 'refs/heads/main'. On other refs, build the pages into a preview artifact instead, as #4924 does for blockers. Note it in docs/ci.md beside #4924's "Nightly blockers baseline" section.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    ci-cd
    on Oct 11, 2026
  2. added
    scope:infra
    on Oct 16, 2026
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

    bugci-cdpriority: mediumscope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions