Repository navigation
fix: name the latest release in SECURITY.md's supported-versions table - #84
Merged
Merged
Conversation
The convention test compared the table with Version, which names the version being prepared. Opening 9.1.0 had to move the table to 9.1.x while 9.0.0 was the latest release on NuGet, so a reporter on 9.0.0 read "no fixes for you". The test now compares the table with PackageValidationBaselineVersion, which names the release already out until the next version is opened, and the baseline test already makes it move at every bump. The table is back to 9.0.x. The tagged commit can't name its own version: its CI runs before the tag exists. So the table moves when the next version is opened, straight after the tag. CONTRIBUTING says so. Closes #79 Found-By: RV Defect-Class: PKG Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
Cherry-picked onto |
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.
Closes #79
Problem
SecurityPolicyConventionTestscompared the supported-versions table withVersioninDirectory.Build.props. That is the version being prepared, not the latest release. Opening 9.1.0 (#69) had to move the table to 9.1.x while 9.0.0 was the latest release on NuGet, so a reporter on 9.0.0 read it as "your version gets no fixes". Bumpingmainto 10.0.0 would have made it say 10.0.x for the whole 10.0 cycle.Change
PackageValidationBaselineVersion, read through a newRepoLayout.LatestRelease. The baseline names the release already out until the next version is opened, andPackageValidationBaseline_IsTheShippedVersionOrTheReleaseBeforeItalready makes it move at every bump. The old test name wasTheSupportedVersionsTable_NamesTheShippedMinor; it is nowTheSupportedVersionsTable_NamesTheLatestRelease.9.0.x ✅/< 9.0 ❌.One change from the plan in #79. The issue said to move the table in the release PR. That can't pass: the commit that gets tagged runs CI before its tag exists, so it can't name its own version and also name the latest release. The table moves with the baseline instead, when the next version is opened straight after the tag. That is when
mainopens 10.0.0, and whenrelease/9.xopens 9.1.1. The taggedv9.1.0commit will still say 9.0.x. GitHub shows the policy frommain, and SECURITY.md doesn't ship in the packages.Tests
SECURITY.md lists 9.1.x as the supported line, but the latest release (PackageValidationBaselineVersion) is 9.0.0 ….After merge
Cherry-pick onto
release/9.x(git cherry-pick -x), so thev9.1.0tag carries it.🤖 Generated with Claude Code