Azure / Azure/azure-sdk-for-python

Release packages using trusted publishing

Aperta
#43,186 2 commenti 0 reazioni 1 assegnatario Rivendicata da @scbedd Vedi su GitHub
customer-reported needs-team-attention question
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
213

Descrizione

Trusted publishing (with attestations) means I can know for certain that what I download from PyPI is the same artefact which was generated in GitHub CI, meaning that what I see in GitHub is the same as what is installed - handy for auditing (rather than having to manually review all of the installed files on each release).

See [the Python packaging documentation](https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#configuring-trusted-publishing), [the PyPI documentation](https://docs.pypi.org/trusted-publishers/), and [the official pypi-publish GitHub action documentation](https://github.com/pypa/gh-action-pypi-publish?tab=readme-ov-file#trusted-publishing) (for reference only: I'm not suggesting switching to GitHub workflows) on trusted publishing.

It looks like many packages use Azure Dev Ops to publish the package, so the first step will be to make Azure Dev Ops [become a trusted publisher](https://docs.pypi.org/trusted-publishers/internals/#how-do-i-become-a-trusted-publishing-provider).

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.