Skip to content

chore(SEC-70): gate the release job and validate the release version - #62

Merged
ssyno merged 1 commit into
mainfrom
chore/spyros/sec-70-release-controls
Nov 23, 2026
Merged

ssyno merged 1 commit into
mainfrom
chore/spyros/sec-70-release-controls

Conversation

@ssyno

@ssyno ssyno commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Part of SEC-70. The release workflow runs on any push to releases/** with the registry credentials, and nothing checks what is being released.

  • The Release job runs in the release environment, which is limited to release refs.
  • A new step refuses a release branch that carries commits which are not on main. Releases are cut from main; a hotfix is git cherry-pick -x of commits that are already there.
  • The version taken from the branch name must be MAJOR.MINOR.PATCH (optional v prefix, no leading zeros) before any step uses it, and shell steps read it from RELEASE_TAG instead of a ${{ }} expression (the SEC-49 fix).

Every existing release branch in this repo passes the version check. The checkout now fetches full history, which the new step needs.

The release environment already exists in this repo with the releases/** deployment policy.

The release workflow ran on any push to a releases/ branch, with the
registry credentials and no review of what was being released.

The release job now runs in the release environment and refuses a
release branch that carries commits which are not on main: releases are
cut from main and hotfixes are git cherry-pick -x of commits already
there. The version taken from the branch name is checked against
X.Y.Z / vX.Y.Z before any step uses it, and shell steps read it from
RELEASE_TAG instead of a workflow expression.
@ssyno
ssyno merged commit 6ec3e40 into main Nov 23, 2026
4 checks passed
@ssyno
ssyno deleted the chore/spyros/sec-70-release-controls branch November 23, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants