[FEATURE] Allow to set up trusted publishing for @scope/*
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.1k
- Forks
- 4.7k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 19
Description
Hello! This is related to https://github.com/npm/cli/issues/8544
I have ~500 packages (here) and publish more packages as Google releases new APIs or new API versions (npm package version is used for generator updates and API revisions, also Google API versions can be anything non-semver).
All of them follow this naming pattern: @maxim_mazurok/gapi.client.*, for example @maxim_mazurok/gapi.client.drive-v3.
Release process is fully automated, and until recently I was using long-lived legacy token.
Now I don't want to update the token every 90d manually. I would rather use trusted publishing, especially since I have provenance already set up.
The obstacle I see is having to manually configure each package (~500) via npm UI. And then also having to do that for each new package (when new APIs or versions are released by Google).
I would much rather set it up once for the whole scope/namespace @maxim_mazurok/*.
As a workaround, I might explore automating the process using my login/password and 2fa seed from CI. However that seems to be about as secure as previous full-access long-lived legacy token.
Would appreciate it if you could allow my use-case to be solved to support low-maintenance automation that I have going on.
Thank you!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked npm/cli issue 8544 and the trusted publishers documentation to understand the existing configuration model. Done should mean trusted publishing can be configured once for @maxim_mazurok/*, covering existing and newly created packages without per-package npm UI setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- release, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100