Skip to content

⚠️ Reusable workflows are currently unsupported on the PyPI side (invalid-publisher error when using reusable workflow) #166

@janosh

Description

@janosh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions