Repository navigation
ci: require marketplaces to point at a published release - #164
Merged
Merged
Conversation
The marketplaces on main advertise whatever tag source.ref names, and main is also the development branch. Two guards so a stray PR cannot move what agents install: - CODEOWNERS routes the three marketplace.json files and both plugin.json manifests to the plugin-release environment's reviewers, so moving the advertised version needs the same approval as a release. - validate-plugin.yml checks that the version (equal to every source.ref per Test-Plugin.ps1) is a published GitHub release, and that a PR never moves its base branch to an older one. Release runs pass because they validate before stamping the next version. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01HsZnyVazMN74ZiuveVyTZX
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.
PR Type
What is the current behavior?
The marketplaces on
mainadvertise whatever tagsource.refnames, andmainis also the development branch. Test-Plugin.ps1 keeps everyrefequal to the plugin version, but nothing checks that the tag exists or was released, and any maintainer review suffices to move it. A typo'd ref would break installs; a PR pointing back at1.0.0would silently downgrade everyone.What is the new behavior?
marketplace.jsonfiles and bothplugin.jsonmanifests require a review from one of theplugin-releaseenvironment's reviewers, the same people who approve a release. This also applies to thechore(release): point the marketplaces at XPRs the release workflow opens.gh release view), and on pull requests that the version is not older than the base branch's. Release runs are unaffected: the validate job runs before the version is stamped, so it sees the previous release's ref.Checked locally:
gh release view 1.1.0passes, a nonexistent tag fails, and thesort -Vcomparison flags1.1.0 → 1.0.0while accepting1.1.0 → 1.1.10.PR Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01HsZnyVazMN74ZiuveVyTZX