Skip to content

Keep only file types the Claude directory accepts - #29

Merged
sebastianekstrom merged 1 commit into
mainfrom
chore/directory-allowed-files
Nov 9, 2026
Merged

sebastianekstrom merged 1 commit into
mainfrom
chore/directory-allowed-files

Conversation

@sebastianekstrom

Copy link
Copy Markdown
Collaborator

The Claude plugin directory refused the plugin: it only accepts Markdown, text, JSON, YAML and PNG, JPEG, GIF, WebP or ICO files from organizations that aren't Verified, and it scans the whole repository because that's the plugin folder. The refused files were .github/scripts/*.mjs and two unused SVG logos.

  • Embeds check-plugin.mjs, check-samples.mjs and bump-version.mjs in a composite action, .github/actions/scripts/action.yml, which writes them to $RUNNER_TEMP/scripts. The Validate, Release and drift workflows and the drift prompt run them from there. The embedded scripts round-trip byte for byte.
  • check-plugin now fails on anything the directory refuses: other file types, files starting with #!, and text that isn't UTF-8 or has NUL bytes.
  • Deletes the unused assets/polar_logomark_*.svg.
  • RELEASE.md: version bumps are now manual edits, and there's a one-liner for running a script locally.

Test plan

  • actionlint shows only the three shellcheck notes that are already on main
  • The extracted check-plugin (default and --cli) and check-samples pass locally
  • On the old tree, the new file-type check flags exactly the three .mjs files
  • Validate workflow passes on this PR

The Claude plugin directory refused the plugin because the repository,
which is the plugin folder, held .mjs scripts and SVG logos. Embed the
three scripts in a composite action that writes them to
$RUNNER_TEMP/scripts, delete the unused SVGs, and make check-plugin fail
on any file type the directory refuses.
@sebastianekstrom
sebastianekstrom added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit f4ac7ff Nov 9, 2026
@sebastianekstrom
sebastianekstrom deleted the chore/directory-allowed-files branch November 9, 2026 09:28
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