ci: auto-update external-plugin pins via scheduled workflow#8
Merged
Conversation
External plugins (terraform-skill, future ones) were pinned by hand. Add a generic, repo-local updater. - .github/scripts/update_external_plugins.py: stdlib-only; auto- discovers external entries (object source == github) from .claude-plugin/marketplace.json, cross-checks the name-matching .agents/plugins entry, resolves the latest eligible upstream release (semver, no prereleases by default), and atomically rewrites source.ref in both manifests plus the mirrored .claude-plugin version. --dry-run supported; fails on rename / deleted tag / API error; "nothing to do" exits 0. - .github/workflows/update-external-plugins.yml: daily cron + workflow_dispatch; opens a reviewable chore(external-plugins) PR via peter-evans/create-pull-request pinned by SHA (v8.1.1). contents+pull-requests write only; no pull_request_target. - .github/external-plugin-updates.json: policy overlay (defaults + optional per-plugin overrides). JSON, not YAML, so the updater needs no third-party deps. - validate.yml: add .agents/plugins/** to trigger paths + a cross-manifest sync check (repo/ref match, version == v+ref). - CONTRIBUTING.md / CLAUDE.md: document the automation; do not hand-bump pins. Manifest/CI only (no plugins/ content), ci: type -> no release. Live dry-run detects the real pending terraform-skill v1.10.0 -> v1.11.0 bump.
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.
What
Generic, repo-local automation to bump external-plugin pins (today: terraform-skill; future plugins auto-discovered) instead of the manual two-manifest edits we did in #4/#5.
Design (/ask-both: GPT + Gemini both -> Option A)
.github/scripts/update_external_plugins.py(stdlib-only): discovers external entries (source.source == github) from.claude-plugin/marketplace.json, cross-checks thename-matching.agents/pluginsentry, resolves the latest eligible upstream release (semver, no prereleases by default;github-tagsmode optional), and atomically rewritessource.refin both manifests + the mirrored.claude-pluginversion.--dry-run; fails hard on upstream rename / deleted tag / API error; "nothing to do" exits 0..github/workflows/update-external-plugins.yml: daily cron +workflow_dispatch; opens a reviewablechore(external-plugins): ...PR viapeter-evans/create-pull-requestSHA-pinned (v8.1.1);contents+pull-requests: writeonly; nopull_request_target..github/external-plugin-updates.json: policy overlay (defaults + per-plugin overrides). JSON (not YAML) to keep the updater dependency-free - documented deviation from the plan.validate.yml:.agents/plugins/**added to trigger paths + a new cross-manifest sync check (repo/ref parity,version == v+ref).Safety
ci:type -> no agent-plugins release (verified against the path+type detection).Verified
After merge: the scheduled run (or a manual
workflow_dispatch) will open the first real bump PR (terraform-skill -> v1.11.0).