Skip to content

Use Trusted Publishing to upload to PyPI #2625

Open

Description

@nsoranzo

I'm looking at reducing the risk of supply chain attacks on my project, which has paramiko as a dependency.
For details, see https://pydevtools.com/handbook/explanation/why-use-trusted-publishing-for-pypi/

Activity

  1. Syed-Haseeb97 commented on Sep 19, 2026

    @Syed-Haseeb97

    I looked into the current release process before attempting to implement this.

    It appears Paramiko does not currently publish to PyPI from GitHub Actions. The release process is handled locally through the Invoke release tasks, which ultimately use Twine to upload the sdist/wheel.

    Because of that, adopting PyPI Trusted Publishing would require more than replacing a GitHub Actions credential: it would likely mean introducing a CI-based release/publishing workflow (or otherwise changing the current release process).

    Would the intended scope of this issue be to migrate PyPI publishing to GitHub Actions so that Trusted Publishing can be used? Or is there another approach the maintainers would prefer while keeping the existing local release workflow?

    I wanted to clarify the intended direction before proposing a potentially significant release-process change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions