gh-action-pypi-publish: `invalid-publisher` error when using reusable workflow
My publish step sits in a resuable workflow .github/workflows/pytest-release.yml.
When setting up trusted publishing, should the workflow name be the file in the actual repo (test.yml in my case) or the reusable workflow file being exectued (pytest-release.yml)? The docs sound like the former which throws
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
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 2
- Comments: 16 (11 by maintainers)
Commits related to this issue
- Move back to tokens - Reusable workflows can't use trusted publishing yet: https://github.com/pypa/gh-action-pypi-publish/issues/166 — committed to robotpy/build-actions by virtuald 8 months ago
@mikegerber v1.8.9 has more debug info
Could gh-action-pypi-publish give more debugging info - if possible? Eg. the values of Publisher - Repository - Workflow - Environment name that should be used in the Trusted publisher configuration?