Repository navigation
publish: PyPI release lane via Trusted Publishing; pipx install in Quick start - #9
Merged
Merged
Conversation
…ick start The package was previously reachable only by cloning the repository. pyproject.toml already declared a complete, dependency-free package with the bvm-lint entry point, so the whole lane is a workflow plus two README lines. Publishing uses PyPI Trusted Publishing (OIDC): no API token exists in any secret store. PyPI is configured to trust this repo + publish.yml + the pypi environment; the environment carries a required-reviewer rule so an upload cannot happen without an explicit approval click, even after a release is published. The verify job re-runs the full repo gate and refuses a tag whose name disagrees with the packaged version, since PyPI versions are immutable once uploaded. Wheel verified locally: clean-venv install, bvm-lint --version 0.3.0, tutorial vault PASS exit 0, twine check PASSED on sdist and wheel.
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.
Implements the PyPI lever from the Codex discoverability review.
What's in it
.github/workflows/publish.yml: builds and uploads to PyPI on every published GitHub release, via Trusted Publishing (OIDC) — no API token is created or stored anywhere. The verify job re-runs the full repository gate first and refuses any tag whose name disagrees with the packaged version (PyPI versions are immutable, so a mismatched pair could never be recalled).pipx install baion-vault-method; the clone-based path stays for repo work.Verified locally before this PR
python -m build: sdist + wheel built;twine checkPASSED on both.bvm-lint --version→ 0.3.0; tutorial vault lint → PASS, exit 0.Operator setup required before the first upload works (one time, ~5 minutes)
baion-vault-method, ownerBaionSyS, repositorybaion-vault-method, workflowpublish.yml, environmentpypi.pypiand add yourself as a required reviewer, so no upload ever runs without your approval click.pypienvironment gate.Until step 2 is done the publish job will simply fail at upload with an OIDC trust error; nothing partial can land.