Skip to content

fix: name the latest release in SECURITY.md's supported-versions table - #84

Merged
CaffeinatedCoder merged 1 commit into
mainfrom
fix/security-table-latest-release
Oct 17, 2026
Merged

CaffeinatedCoder merged 1 commit into
mainfrom
fix/security-table-latest-release

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #79

Problem

SecurityPolicyConventionTests compared the supported-versions table with Version in Directory.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". Bumping main to 10.0.0 would have made it say 10.0.x for the whole 10.0 cycle.

Change

  • The test now compares the table with PackageValidationBaselineVersion, read through a new RepoLayout.LatestRelease. The baseline names the release already out until the next version is opened, and PackageValidationBaseline_IsTheShippedVersionOrTheReleaseBeforeIt already makes it move at every bump. The old test name was TheSupportedVersionsTable_NamesTheShippedMinor; it is now TheSupportedVersionsTable_NamesTheLatestRelease.
  • SECURITY.md is back to 9.0.x ✅ / < 9.0 ❌.
  • CONTRIBUTING's "Branches and releases" says when the table moves.

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 main opens 10.0.0, and when release/9.x opens 9.1.1. The tagged v9.1.0 commit will still say 9.0.x. GitHub shows the policy from main, and SECURITY.md doesn't ship in the packages.

Tests

  • Seeded the defect: before the table was moved back, the table named 9.1.x with the baseline at 9.0.0. The new test failed with SECURITY.md lists 9.1.x as the supported line, but the latest release (PackageValidationBaselineVersion) is 9.0.0 ….
  • With the table at 9.0.x, the conventions project passes: 102 of 102.

After merge

Cherry-pick onto release/9.x (git cherry-pick -x), so the v9.1.0 tag carries it.

🤖 Generated with Claude Code

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]>
@CaffeinatedCoder CaffeinatedCoder added this to the 9.1.0 milestone Oct 17, 2026
@CaffeinatedCoder CaffeinatedCoder added bug Something isn't working area/release Versioning, changelogs, release wiring severity/low Cosmetic, message or documentation-level difference labels Oct 17, 2026
@CaffeinatedCoder
CaffeinatedCoder merged commit 9a60c5f into main Oct 17, 2026
@CaffeinatedCoder
CaffeinatedCoder deleted the fix/security-table-latest-release branch October 17, 2026 19:27
@CaffeinatedCoder

Copy link
Copy Markdown
Owner Author

Cherry-picked onto release/9.x in #85.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Versioning, changelogs, release wiring bug Something isn't working severity/low Cosmetic, message or documentation-level difference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SECURITY.md names the version being prepared as supported, not the latest release

1 participant