Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use-trusted-publishing: detect other PyPI uploading tools #282

Open
5 tasks
woodruffw opened this issue Dec 12, 2024 · 0 comments
Open
5 tasks

use-trusted-publishing: detect other PyPI uploading tools #282

woodruffw opened this issue Dec 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request false-negative

Comments

@woodruffw
Copy link
Owner

woodruffw commented Dec 12, 2024

maturin upload and uv publish both support Trusted Publishing, although detecting them is a little tricky since it (seems to be) common to run both directly, rather than via wrapper actions.

To detect these generally, we'll probably need to look at run: blocks with env: settings like:

  • PyO3/maturin-action: https://github.com/PyO3/maturin-action

  • uv: UV_PUBLISH_TOKEN / UV_PUBLISH_PASSWORD

  • maturin: MATURIN_PYPI_TOKEN / MATURIN_PASSWORD

  • pdm (pdm publish): PDM_PUBLISH_PASSWORD

  • hatch (hatch publish): HATCH_INDEX_AUTH

Each of these is also a little bit subtle, since we need to avoid false positives when the publish action is to a non-PyPI/TestPyPI index. Some also take CLI options that should be detected, e.g. hatch publish takes --auth <AUTH> as another way to pass the credential.

@woodruffw woodruffw added enhancement New feature or request false-negative labels Dec 12, 2024
@woodruffw woodruffw self-assigned this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request false-negative
Projects
None yet
Development

No branches or pull requests

1 participant