Skip to content

Upload fails with 403 Invalid API Token: InvalidMacaroon #53

@Borda

Description

@Borda

Hello,
thx for this cool tool, we have been using it already for a while but just not got some problems...

Unfortunately recently we started to observe some auth issue for uploading to test PyPI:
403 Invalid API Token: InvalidMacaroon('invalid macaroon signature')
as you can see in this GH action nightly build but at the same time uploading linked release event works fine...
I have tested locally to change the version to be as nightly YYYYMMDD and upload with twine and after passing my personal credentials it works fine too...

So I really don't know what is wrong as:

  • token shall be fine as we use the same as for release and that actions pass
  • version is also valid as we used it in the past and local upload also works

This is the call we use in both GH actions (the only diff is that one has a conditional trigger)

- name: Publish to Test PyPI
  uses: pypa/[email protected]
  with:
    user: __token__
    password: ${{ secrets.test_pypi_password }}
    repository_url: https://test.pypi.org/legacy/
    verbose: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions