Repository navigation
Description
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:orworkflow_runlink between Release and Validate. Both start on the same push; Release does not wait. bump="patch"is the default for any commit, includingdocs:andchore:, so every push to main publishes a release.- The commit log is read with
--format="%s"(subject only). Major is detected only forfeat!:/feature!:orBREAKING CHANGEin the subject;fix!:andBREAKING 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
- Read
.github/workflows/release.yml:1-50: noneeds/workflow_runand apatchdefault. - Push a commit to main that fails a Validate job: Release still runs to completion.
Suggested fix
- Trigger Release with
workflow_runon Validate (types: [completed],branches: [main]) and run only whenconclusion == 'success'; or merge the release job intovalidate.ymlwithneeds:on the validate jobs. - Read
%Binstead of%s, detect<type>(scope)!:for any type andBREAKING CHANGE:in bodies, and skip the release when there are nofeat/fix/breaking commits since the last tag. - Update
CLAUDE.md/AGENTS.mdif 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 aBREAKING 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
TMHSDigital commentedon Nov 21, 2026
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.