Skip to content

WORKFLOW.md D2 Does Not Describe the Release Gate's Branch-Name Refusal #1531

Closed

Description

@ptr727

Gap

The release task's validate-release gate now refuses, before its smoke exit, any branch input git would not accept as a name, through git check-ref-format --branch. It landed in the pull request answering a finding on #1526 that the version step logged the branch unsanitized. WORKFLOW.md does not describe it: D2.2 and the S1/S4 rows of section 5 present validate-release only as the branch-versus-version consistency check, which on a smoke run "exits early while the job still reports success".

Nothing reachable contradicts that text, since a documented caller passes github.ref_name or github.base_ref || github.ref_name, both always valid names, so a real smoke or publish run never trips the refusal. But the contract no longer lists everything the gate asserts at entry, which is what D2's validate-at-entry guarantees exist to record, and a repository reading D2.2 would not learn that an invalid branch value fails the run before anything builds.

Possible fix

Add the branch-name refusal to D2, either as a clause of D2.2 or as its own item, stating the input (a branch git would not accept as a name), the output (the gate fails before its smoke exit, echoing no part of the value), and what it prevents (a caller value forming a :: or ##[ workflow command wherever later steps print the branch).

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