Skip to content

Document GitHub artifact attestations in PyPI workflow - #2063

Open
alan747271363-art wants to merge 1 commit into
python:mainfrom
alan747271363-art:codex/document-gha-artifact-attestations
Open

alan747271363-art wants to merge 1 commit into
python:mainfrom
alan747271363-art:codex/document-gha-artifact-attestations

Conversation

@alan747271363-art

@alan747271363-art alan747271363-art commented May 31, 2026 •

Copy link
Copy Markdown

Summary

  • add a separate GitHub Actions job that generates artifact attestations for built distributions with actions/attest-build-provenance@v4
  • document where the attestation job fits in the PyPI/TestPyPI publishing workflow
  • clarify that GitHub artifact attestations complement the PEP 740 attestations uploaded by pypa/gh-action-pypi-publish

Closes #1567

Validation

  • py -X utf8 -c "import yaml, pathlib; yaml.safe_load(pathlib.Path('source/guides/github-actions-ci-cd-sample/publish-to-pypi.yml').read_text(encoding='utf-8')); print('YAML OK')"
  • py -X utf8 -m sphinx -b html -n -W source build
  • git diff --check

📚 Documentation preview 📚: https://python-packaging-user-guide--2063.org.readthedocs.build/en/2063/

@webknjaz webknjaz self-assigned this May 31, 2026
@webknjaz

Copy link
Copy Markdown
Member

I'll need to remember what I wanted originally when I was filing that issue.. I know that one thing was that I wanted to implement this within the action.

Also, I'm not sure if the publishing jobs need to depend on the standalone attestation ones.

cc @woodruffw @facutuesca options?

@woodruffw

Copy link
Copy Markdown
Contributor

Yeah, I'm actually not sure this is a great fit for this repo. GitHub's attestations use the same underlying technology and stack (Sigstore) as PEP 740 attestations, but they're not directly shape-compatible with the attestations used by PyPI.

@rgommers rgommers added type: enhancement A self-contained enhancement or new feature component: guides labels Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: guides type: enhancement A self-contained enhancement or new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace manual Sigstore signing with a separate job using actions/attest-build-provenance @ GHA publishing guide

4 participants