Skip to content

Move E2E scorecard orchestration into the scorecard modules #6963

Closed

Description

@cv

Parent: #6952

Problem

The E2E scorecard job already delegates trace timing, job summarization, and Slack block construction to scripts/scorecard/, but 113 lines of scorecard orchestration and 28 lines of Slack publication remain inline in .github/workflows/e2e.yaml.

Issue #6927 owns the module-format migration of the existing scorecard files. This task begins after that boundary is settled.

Work

  • Add a directly testable scorecard coordinator to the existing scorecard owner.
  • Move run-mode parsing, requested-selector rendering, summary assembly, output payload creation, and Slack response validation out of YAML.
  • Keep secret selection and the decision to expose webhook secrets only on refs/heads/main declarative in the workflow.
  • Preserve the separate no-secret compute step and fixed secret-bearing publisher.

Acceptance criteria

  • The scorecard and Slack inline programs become short invocations after Migrate E2E scorecard modules to .mts #6927.
  • Scheduled, full manual, and selective runs retain the same counts, failed-job links, trace warning behavior, channel selection, fallback text, and Slack blocks.
  • The publisher accepts only the precomputed allowlisted channel/payload shape and never loads workflow-ref code through GITHUB_WORKSPACE.
  • Webhook secrets remain unavailable to branch-dispatched runs and selective preview posts remain opt-in.
  • Direct module tests replace workflow-source execution tests where behavior moved.
  • npm run typecheck:scorecard, focused E2E-support tests, and npm run typecheck:cli pass.

Depends on #6927.

Activity

  1. added
    area: ci
    on Jul 15, 2026
  2. added theissue type on Jul 15, 2026
  3. added
    area: e2e
    on Jul 15, 2026
  4. added
    area: architecture
    help wanted
    on Jul 15, 2026
  5. self-assigned this
    on Jul 16, 2026
  6. added a commit that references this issue on Jul 17, 2026
    aa3dd78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: architecturearea: ciarea: e2ehelp wanted

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions