Skip to content

Security: stop pointing users at the PyPI name "personakit"; pin actions - #20

Open
Yanir-R wants to merge 1 commit into
mainfrom
claude/brave-galileo-fjfumj
Open

Yanir-R wants to merge 1 commit into
mainfrom
claude/brave-galileo-fjfumj

Conversation

@Yanir-R

@Yanir-R Yanir-R commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • personakit/mcp_server.py: the error message and docstring told users to run pip install "personakit[mcp]". They now say pip install "mcp>=1.2,<2" or pip install -e ".[mcp]", with a note explaining why.
  • Workflow actions are pinned to full commit SHAs.
  • .gitignore now covers .env.*, *.pem, *.key and .pypirc.

Why

The PyPI name personakit belongs to an unrelated author: 20 releases, from github.com/Majidul17068/personakit. This repo has never been published there, so following the old hint would install someone else's code. That is the same kind of attack as the recent malicious PyPI .pth releases.

How to verify

  • ruff check
  • the unittest suite (165 tests)
  • scripts/check_hygiene.sh

All three pass locally, and CI unittest (3.10 and 3.13), quality and hygiene are green.

Checklist

  • Commits: the DCO signoff job ran and was skipped, which the workflow counts as passing for this author. If you want the commit signed off anyway, run git commit -s --amend and push.
  • No personal data, real paths, hostnames or credentials
  • Test fixtures use invented data only
  • No duplicated logic
  • Docs updated where install guidance changed

Follow-up: register a different PyPI name, or request a PEP 541 transfer, before publishing. When you do publish, use trusted publishing (OIDC).

🤖 Generated with Claude Code

https://claude.ai/code/session_014dGcvXseXoR7arNE61q8rg

- The PyPI project "personakit" belongs to an unrelated author. The MCP
  server's install hint (`pip install "personakit[mcp]"`) would have installed
  that third-party package. The hint now names the `mcp` dependency itself,
  and the module docstring says to install from a checkout.
- actions/checkout and actions/setup-python pinned to their v4.4.0 / v5.6.0
  commit SHAs in all three workflows.
- .gitignore: .env.*, *.pem, *.key, .pypirc.

ruff check, the unittest suite (165 tests) and check_hygiene.sh pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014dGcvXseXoR7arNE61q8rg
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.

2 participants