Skip to content

Release workflow publishes on every push to main without waiting for validation #37

Closed

Description

@TMHSDigital

Summary

release.yml runs on every push to main with no dependency on the Validate workflow, so a commit that fails validation is still version-bumped, tagged and released. The bump logic also defaults to a patch release for any commit and misses some breaking-change markers.

Where

  • .github/workflows/release.yml:3-5 (on: push: branches: [main])
  • .github/workflows/release.yml:35-50 (Determine bump type from commits)
  • .github/workflows/validate.yml:3-7 (runs on the same push, independently)

Details

  • There is no needs: or workflow_run link between Release and Validate. Both start on the same push; Release does not wait.
  • bump="patch" is the default for any commit, including docs: and chore:, so every push to main publishes a release.
  • The commit log is read with --format="%s" (subject only). Major is detected only for feat!: / feature!: or BREAKING CHANGE in the subject; fix!: and BREAKING CHANGE: footers in the body are missed.

CLAUDE.md documents the contract as PATCH for fix:, MINOR for feat:, MAJOR for BREAKING CHANGE. The hardcoded MCP tool count in the same workflow is tracked in "Hand-copied artifact counts have drifted across ~9 files (release says 6 tools)".

Impact

Broken builds can be tagged and published as GitHub Releases of a plugin users install into their editor. Version numbers do not follow the documented conventional-commit rules (documentation-only pushes create releases, some breaking changes get a minor or patch bump).

Steps to reproduce

  1. Read .github/workflows/release.yml:1-50: no needs/workflow_run and a patch default.
  2. Push a commit to main that fails a Validate job: Release still runs to completion.

Suggested fix

  • Trigger Release with workflow_run on Validate (types: [completed], branches: [main]) and run only when conclusion == 'success'; or merge the release job into validate.yml with needs: on the validate jobs.
  • Read %B instead of %s, detect <type>(scope)!: for any type and BREAKING CHANGE: in bodies, and skip the release when there are no feat/fix/breaking commits since the last tag.
  • Update CLAUDE.md / AGENTS.md if the documented behaviour changes.

Acceptance criteria

  • A push to main that fails Validate does not produce a version bump, tag or GitHub Release.
  • A push containing only docs:/chore: commits does not release.
  • fix!: and a BREAKING CHANGE: footer each produce a major bump.

Getting started

  • Relevant files: .github/workflows/release.yml, .github/workflows/validate.yml
  • How to run checks: there is no test suite yet; run the MCP server with cd mcp-server && pip install -r requirements.txt && python server.py, and CI checks live in .github/workflows/validate.yml
  • Related docs: CLAUDE.md (Release Workflow), AGENTS.md

Filed by repo-audit/full-audit at 701824d. Severity: medium. Effort: S. audit-key: ci|.github/workflows/release.yml|version-and-release

Activity

  1. added
    ci
    on Nov 21, 2026
  2. TMHSDigital commented on Nov 21, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in 7769055.

    Release now runs via workflow_run only after Validate succeeds for a push to main; any <type>!: or BREAKING CHANGE footer is major, feat minor, fix/perf patch, and other commit types do not release. CLAUDE.md and AGENTS.md describe the new behaviour.

    Verified: Bump rules checked locally against sample subjects/bodies (docs+chore none, fix! major, footer major, feat+fix minor, fix patch, ci none). The workflow_run trigger itself takes effect from this push onwards.

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

    ciseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions