Skip to content

Releasing

Releases run from .github/workflows/release.yml when a tag vX.Y.Z is pushed:

  1. build: checks the tag matches provingground.__version__, builds sdist + wheel with uv build, generates a CycloneDX SBOM of the installed wheel's environment.
  2. provenance: SLSA v1 build provenance via slsa-framework/slsa-github-generator.
  3. sign: keyless Sigstore signatures (cosign sign-blob, GitHub OIDC) as bundles.
  4. publish-testpypi (environment testpypi), then publish-pypi (environment pypi) via PyPI Trusted Publishing (pypa/gh-action-pypi-publish, no API tokens).
  5. github-release: attaches dist files, SBOM, signature bundles and provenance.

Distribution name: vexlari-proving-ground (the import package is provingground, the CLI pg).

One-time setup (maintainer)

On both https://test.pypi.org and https://pypi.org, add a pending Trusted Publisher:

Field Value
PyPI project name vexlari-proving-ground
Owner anandprivate06
Repository proving-ground
Workflow release.yml
Environment testpypi (TestPyPI) / pypi (PyPI)

Create the GitHub environments testpypi and pypi (Settings > Environments); adding a required reviewer on pypi is recommended.

Verifying a release

cosign verify-blob --bundle vexlari_proving_ground-X.Y.Z-py3-none-any.whl.cosign.bundle \
  --certificate-identity-regexp 'https://github.com/anandprivate06/proving-ground/.github/workflows/release.yml@refs/tags/v.*' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  vexlari_proving_ground-X.Y.Z-py3-none-any.whl
slsa-verifier verify-artifact --provenance-path multiple.intoto.jsonl \
  --source-uri github.com/anandprivate06/proving-ground vexlari_proving_ground-X.Y.Z-py3-none-any.whl