Giter Club home page Giter Club logo

Comments (3)

webknjaz avatar webknjaz commented on May 18, 2024

There's no way for us to reliably identify if it's one huge password or several tokens. We cannot warn about this.
Also, we just call twine and it does uploading. I'm not even sure if there's an API for verifying that a token is valid.

FWIW this is not a common use case and even if it was, it would be reasonable to define a mapping between the dists and their tokens. Attempting to use a wrong token before the right one would probably alert PyPI too.

To facilitate this, I can only suggest you invoke this action twice, for different package directories and respective tokens.

from gh-action-pypi-publish.

Strilanc avatar Strilanc commented on May 18, 2024

Yes, using it twice was the workaround I went with.

I'm surprised that there's no way to distinguish the two cases. I suppose you would have needed to declare it as a list of strings from the start? Or you'd need a separate "tokenS" parameter.

I didn't expect you to check if the tokens were valid, I expected you to pass them along to twine which would pass them along to pypi which would handle verification. Of course each step along the way could easily have not supported multiple tokens...

from gh-action-pypi-publish.

webknjaz avatar webknjaz commented on May 18, 2024

GHA inputs are arbitrary strings. We'd need to accept a complex structure like JSON to make this work, and maybe force people to escape their secrets. This is not a realistically usable approach and is definitely out of the scope of this action.

from gh-action-pypi-publish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.