Skip to content

Recheck master before publishing a release tag #706

Closed

Description

@LunaStev

Problem

.github/workflows/release.yml verifies that the workflow was dispatched from master in the initial validate job, then runs the cross-platform validation/package matrix. The final publish job creates the release tag with --target "$GITHUB_SHA" but does not recheck that upstream master still points at that commit.

If master advances while the release matrix is running, the workflow can publish a tag and release for a commit that is no longer the current master, despite the release workflow explicitly requiring master.

Completion criteria

  • Read the authoritative wavefnd/Wave master SHA again in the publish job immediately before release creation.
  • Abort before creating a tag or release when it differs from GITHUB_SHA.
  • Fail closed when the upstream branch cannot be verified.
  • Keep all existing artifact, checksum, version, and tag validation unchanged.
  • Add a focused workflow/script regression for the case where master advances after validation but before publication.

Difficulty: medium.

Activity

  1. added
    bug
    ci
    on Sep 24, 2026
  2. self-assigned this
    on Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugci

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions