Skip to content

ci: validate plugin.json and marketplace.json manifests - #27

Open
talari-river wants to merge 1 commit into
shadcn:mainfrom
talari-river:ci/plugin-marketplace-validation
Open

talari-river wants to merge 1 commit into
shadcn:mainfrom
talari-river:ci/plugin-marketplace-validation

Conversation

@talari-river

Copy link
Copy Markdown

Summary

Adds a GitHub Actions workflow that validates the Claude Code plugin and marketplace manifests on every push and PR to main.

What it does

  • Triggers on push and pull_request to main.
  • Checks out the repository and sets up Node.js 22.
  • Installs the Claude Code CLI (@anthropic-ai/claude-code).
  • Validates plugin.json with claude plugin validate --strict — fails on misspelled/unknown manifest fields and missing metadata.
  • Validates marketplace.json with claude plugin validate --strict — the same command auto-detects marketplace manifests and checks schema errors, duplicate plugin names, and source path traversal (..).
  • Fails the workflow on any non-zero exit.

No secrets or API keys are required — claude plugin validate is a local manifest check.

Verification

The workflow was run against the current manifests; both plugin.json and marketplace.json pass --strict validation locally. This is part of a broader audit-and-remediation pass on this repository.

Closes: n/a

Add a GitHub Actions workflow that:
- Runs on every push and PR to main
- Sets up Node.js and installs the Claude Code CLI
- Validates .claude-plugin/plugin.json with --strict (flags misspelled/unknown fields)
- Validates .claude-plugin/marketplace.json with --strict (schema errors, duplicate names, source path traversal)
- Fails on any non-zero exit
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