#πŸ”’ Need help with trusted publishing

11 messages Β· Page 1 of 1 (latest)

uncut rivet
#

I've set everything up as it should be on both pypi and github, but I keep getting these 2 errors when running the github action to build and publish my package:
Warning: It looks like you are trying to use an API token to authenticate in the package index and your token value does not start with "pypi-" as it typically should. This may cause an authentication error. Please verify that you have copied your token properly if such an error occurs.
and
ERROR HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/ Invalid or non-existent authentication information.

I'm stumped and don't know what to do. My publish .yml is at https://github.com/lawnchairmeku/pymember/blob/main/.github/workflows/python-publish.yml

flat currentBOT
#

@uncut rivet

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

steel fiber
#

The complaint seems pretty clear. My own API key starts with pypi- as expected. Have you checked?

NB: do not recite your API key or other credentials here!

uncut rivet
vernal basin
#

You might want to ask on the pypa Discord

uncut rivet
#

Thanks

flat currentBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

πŸ”’ Need help with trusted publishing