Skip to content

ci: publish SkillSpector releases with PyPI Trusted Publishing - #1179

Merged
rng1995 merged 9 commits into
mainfrom
naren/pypi-trusted-publishing
Nov 24, 2026
Merged

rng1995 merged 9 commits into
mainfrom
naren/pypi-trusted-publishing

Conversation

@rng1995

@rng1995 rng1995 commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

PyPI assigned the skillspector project name to the NVIDIA organization in pypi/support#11780. Its package index is empty. The current GitHub workflow publishes the validated distributions as GitHub Release assets.

Changes

  • Pass the wheel and source distribution from a merged, label-approved release PR to an isolated index publishing job.
  • Use GitHub OIDC Trusted Publishing, with an opt-in TestPyPI target and a separate production environment. Maintainers enable the index after configuring its Trusted Publisher and deployment review.
  • Check each file's digest against the selected index so an interrupted upload can safely retry.
  • Document publisher setup and package installation, including the optional MCP extra.

Verification

  • Release workflow, GitHub release helper, and asset validation tests passed (16 tests). actionlint, Ruff lint and format checks passed.
  • Wheel and source distribution built reproducibly and passed Twine metadata validation. The release gate verifies the bundled YARA and model registry files in both distributions (15 files on this branch).
  • Installed the wheel and the source distribution with the MCP extra in fresh Python 3.12, 3.13, and 3.14 environments. Verified the CLI, MCP command, and bundled resources.
  • A local index smoke test verified recovery from a partial upload and rejection of conflicting bytes. Live OIDC verification awaits TestPyPI publisher setup. Maintainers can validate a staging release and then switch the repository variable for a subsequent production release.

Validation used the 2.12.0 version currently declared on main. A later release PR will set the version for the first PyPI upload.

@rng1995
rng1995 marked this pull request as ready for review November 24, 2026 04:06

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The artifact build and publish permission boundaries look sound. I found a destination-consistency gap across failed-job retries.

Comment thread .github/workflows/release.yml Resolved
@rng1995
rng1995 merged commit 2d0c6dd into main Nov 24, 2026
6 checks passed
@rng1995
rng1995 deleted the naren/pypi-trusted-publishing branch November 24, 2026 05:15
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