Skip to content

ci: require marketplaces to point at a published release - #164

Merged
kazo0 merged 1 commit into
mainfrom
ci/guard-marketplace-refs
Oct 2, 2026
Merged

kazo0 merged 1 commit into
mainfrom
ci/guard-marketplace-refs

Conversation

@kazo0

@kazo0 kazo0 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

PR Type

  • Build or CI related changes

What is the current behavior?

The marketplaces on main advertise whatever tag source.ref names, and main is also the development branch. Test-Plugin.ps1 keeps every ref equal 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 at 1.0.0 would silently downgrade everyone.

What is the new behavior?

  • CODEOWNERS: the three marketplace.json files and both plugin.json manifests require a review from one of the plugin-release environment's reviewers, the same people who approve a release. This also applies to the chore(release): point the marketplaces at X PRs the release workflow opens.
  • validate-plugin.yml: a new step checks that the plugin version is a published GitHub release (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.0 passes, a nonexistent tag fails, and the sort -V comparison flags 1.1.0 → 1.0.0 while accepting 1.1.0 → 1.1.10.

PR Checklist

  • Documentation has been added/updated
  • Associated with an issue (GitHub or internal)

🤖 Generated with Claude Code

https://claude.ai/code/session_01HsZnyVazMN74ZiuveVyTZX

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
@kazo0
kazo0 merged commit 10de772 into main Oct 2, 2026
4 checks passed
@kazo0
kazo0 deleted the ci/guard-marketplace-refs branch October 2, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant