rubygems / rubygems.org

The Ruby community's gem hosting service.
https://rubygems.org
MIT License
2.31k stars 915 forks source link

Ability to bulk create trusted publishers #4309

Open ekohl opened 8 months ago

ekohl commented 8 months ago

Is your feature request related to a problem?

As an admin of both Vox Pupuli and The Foreman I'm responsible for a sizeable number of gems. Clicking through the UI is tedious and error prone, so I'd like some programmatic way to set up in bulk.

Describe the solution you'd like

A way to both set up trusted publishing and verify it is indeed set up in a programmatic way.

Perhaps via the gem application, similar to how gem owner allows managing the owner. That allows me to use shell scripts in a loop. Only a REST API would be a good start.

simi commented 8 months ago

@segiddins any plans on trusted publishers API?

segiddins commented 8 months ago

Yup, we can set up an API. It'll probably necessitate adding a new API scope, and also ensuring MFA is given.