-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
HTTPError: 403 Forbidden or invalid-publisher: a valid token is recognized, but no corresponding publisher is found #232
Comments
Do you have a link to your workflow run to share? |
Oh, that's the problem (or a part of it?). PyPI doesn't currently support reusable workflows: #166. Though, it's weird that the error is different from that issue. cc @woodruffw could you take a look? |
By the way, it's highly discouraged to run the build within the same job as publishing having access to OIDC. |
I've been attempting to use the API token method for publishing but encountered issues, specifically the error described in #138. Despite ensuring that my GitHub secret is not empty, I've been unable to successfully utilize this method. Consequently, I switched to Trusted Publishing. However, this switch introduced a new issue, which I mentioned earlier. Regardless, I'm facing problems with both methods. With the API token, I receive an error stating Action Issue with Trusted Publisher: https://github.com/ElieTaillard/ikabot/actions/runs/8819839652/job/24212025378 |
This will not work with reusable workflows, as I mentioned before. It's just not implemented in PyPI yet.
This is also going the trusted publishers route because no token is passed to action. You're trying to pass it but it never reaches the action. The reason is that when you use reusable workflows, they don't have access to secrets. You have to either configure access to all secrets or pass specific ones when calling the workflow. Here's the corresponding GitHub doc that you should follow in order to pass data from the calling workflow to the called one: https://docs.github.com/en/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow. Also, make sure to drop the To summarize:
|
@webknjaz I also wanted to share some good news — thanks in part to your guidance, I've successfully published a new version of my package (with github actions). Here is the link: ikabot on PyPI. Since my issue has been resolved, I'm closing the issue. Thank you again for your support and patience! |
You're welcome! |
I'm encountering an issue when I run the
publish_pypi_manually.yml
action in my GitHub repository:This action is configured to call another action,
publish_pypi.yml
. Here are the details of each YML file:publish_pypi_manually.yml
:publish_pypi.yml
:test pypi screenshot
Despite these configurations, I am receiving an action error. I've confirmed that my test PyPI account is set up for Trusted Publishing, but I'm still facing issues. Could there be a misunderstanding or misconfiguration I'm overlooking?
The text was updated successfully, but these errors were encountered: