Skip to content

invalid-publisher error #349

Answered by brianmay
brianmay asked this question in Q&A
Mar 1, 2025 · 3 comments · 8 replies
Discussion options

You must be logged in to vote

Yes, recreating the publisher did seem to work.

When copying and pasting the "pypi" I noticed this time I got a white space character before " pypi", which I deleted. Wonder if this was the problem...

Also, I see you give the transitive build deps power to impersonate your repository with other entities through OIDC. Don't do that. It's dangerous and therefore unsupported.

Still trying to understand github action permissions. And this is what the example seems to be telling me to do:

jobs:
  pypi-publish:
    name: Upload release to PyPI
    runs-on: ubuntu-latest
    environment:
      name: pypi
      url: https://pypi.org/p/<your-pypi-project-name>
    permissions:
      id-token: wr…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@webknjaz
Comment options

Comment options

You must be logged in to vote
5 replies
@brianmay
Comment options

Answer selected by webknjaz
@brianmay
Comment options

@brianmay
Comment options

@webknjaz
Comment options

@brianmay
Comment options

Comment options

You must be logged in to vote
2 replies
@webknjaz
Comment options

@brianmay
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants