Skip to content

Support TP token "burning" with PyPI #1381

Open

Description

@woodruffw

See pypa/gh-action-pypi-publish#423 for context as well 🙂

TL;DR PyPI has addded token "burning" as another defense-in-depth, making it possible for clients that do Trusted Publishing to proactively invalidate a short-lived API token rather than letting it expire naturally. This further reduces the already smaller disclosure risk associated with short-lived TP tokens.

Twine has supported the TP flow directly since 6.1, so I think this would make a nice addition to the existing flow! And I'm happy to contribute it.

Context:

Activity

  1. self-assigned this
    on Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions