Open
Description
Hey, I noticed that python-publish.yml
uses a number of outdated practices that is best to fix:
- A long-living API token is used — get rid of it and replace with secretless publishing; my PyPUG guide is already updated to guide you through this: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
- Building in the publishing job is a security concern as it enlarges the attack surface; the same guide shows how to fix this with reduced privileges; this is especially important with secretless publishing
- Using
--sdist --wheel
together causes pypa/build make dists separately, from the Git checkout; the best practice to smoke-test what pip would actually do is to drop them; this will make it build sdist from Git, but wheel from that sdist
Metadata
Metadata
Assignees
Labels
No labels