Repository navigation
chore(SEC-70): gate the release job and validate the release version - #62
Merged
Merged
Conversation
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.
lakhansamani
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of SEC-70. The release workflow runs on any push to
releases/**with the registry credentials, and nothing checks what is being released.releaseenvironment, which is limited to release refs.main. Releases are cut frommain; a hotfix isgit cherry-pick -xof commits that are already there.MAJOR.MINOR.PATCH(optionalvprefix, no leading zeros) before any step uses it, and shell steps read it fromRELEASE_TAGinstead 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
releaseenvironment already exists in this repo with thereleases/**deployment policy.