You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use gh-action-pypi-publish with trusted publishing within a reusable workflow, I get the following error:
...
Notice: Attempting to perform trusted publishing exchange to retrieve a temporary short-lived API token for authentication against https://upload.pypi.org/legacy/ due to __token__ username with no supplied password field
Error: Trusted publishing exchange failure:
Token request failed: the server refused the request for the following reasons:
* `invalid-publisher`: valid token, but no corresponding publisher
Hi @GergelyKalmar, it sounds like you're mixing up two different concepts here. There are composite actions and reusable workflows. But there is no such thing as composite workflows.
You're using reusable workflows in your repository. They are currently unsupported on the PyPI side and I believe this feature is tracked in the warehouse repository. Once implemented, it should work without any changes on the action side. @woodruffw or @di have better understanding of the details and blockers.
I'm going to close this issue since there's no action items on our side at the moment.
P.S. I'm also eager to start using this with reusable workflows but we're not there yet, unfortunately. For now, you'll have to copy the job around.
You're right, I wasn't sure if this is an issue with the action or with the OIDC implementation itself. Seems like it is the latter and it is indeed tracked at pypi/warehouse#11096.
I've also fixed the terminology so others may find this issue in the future when searching.
Uh oh!
There was an error while loading. Please reload this page.
When trying to use
gh-action-pypi-publish
with trusted publishing within a reusable workflow, I get the following error:The relevant parts of the reusable workflow file are here: https://github.com/logikal-io/github-workflows/blob/main/.github/workflows/publish-release.yml#L128
The calling workflow is here: https://github.com/logikal-io/pytest-logikal/blob/main/.github/workflows/publish-release.yml
I tried it with a trusted publisher set up for both repositories with and also without an environment, none worked:
I'm wondering if reusable workflows are supported at all or if there's a plan to support them in the future.
The text was updated successfully, but these errors were encountered: