[BUG] Fresh trusted-publisher entry rejected with "package not found" for hours before the exchange accepts it
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- github-actions, nodejs
- Área
- authentication
Línea de trabajo
The report gives example token exchange requests and workflow runs, but names no npm CLI source file or test. Start by tracing the trusted publisher token exchange path and how it looks up package configuration; compare that behavior with the reported delay. Done when the cause is identified and the issue's expected behavior is addressed with a regression test.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Is there an existing issue for this?
Searched: "trusted publisher", "token exchange delay/propagation/activate", "package not found oidc" — no issue covers a freshly created entry taking time to become exchange-active. Related but distinct: #9969 (immutable sub claims — permanent mismatch), #8976 (scoped/changesets E404), #9088 (misleading error text).
Current Behavior
A trusted-publisher entry created (or deleted and re-created) on npmjs.com is rejected by the token exchange for hours, then starts succeeding with no field changes in between.
Observed 2026-11-08 UTC on @igorjpimenta/doppler-opencode (repo igorjpimenta/doppler-harness, workflow publish.yml, no environment, actions publish + dist-tag):
| UTC | Action | Result |
|---|---|---|
| ≈17:15 | Re-created the entry (old one had never completed a first publish inside the 2-day window) | entry saved |
| 17:21 | workflow_dispatch publish |
POST /-/npm/v1/oidc/token/exchange/package/@igorjpimenta%2fdoppler-opencode → 404, body OIDC token exchange error - package not found, then ENEEDAUTH |
| 17:39 | Same dispatch, retry | same 404 |
| 20:11 | Same dispatch, same entry, same workflow ref, same OIDC claims | → 201, publish succeeded |
Between the failures and the success nothing changed: npm trust list --json before the success showed exactly {file: publish.yml, repository: igorjpimenta/doppler-harness, permissions: [createPackage, createStagedPackage, manageDistTags]} with no environment; the ID token claims were the same immutable-sub shape throughout (the sibling package @igorjpimenta/doppler-harness publishes through the same repo/workflow and worked both before and after the window). The only variable that changed was time (~3 hours).
Expected Behavior
Either the entry is active when it is saved, or the exchange error says the configuration is not active yet (and roughly when it will be), instead of package not found — which reads as a package-name problem and sent us debugging the wrong layer (package.json repository.directory, claim formats, entry field typos) for the whole window.
Environment
- npm: 12.2.2 (both locally and
npm install -g npm@lateston the runner) - Registry: registry.npmjs.org
- Runner: GitHub Actions ubuntu-latest,
id-token: write,NODE_AUTH_TOKEN: "" - Failing runs (public): igorjpimenta/doppler-harness runs 42504541130, 42506054593; success run 42518861191
Suggestion
Document the activation delay wherever the 2-day first-publish rule is documented, and consider a distinct exchange error (or a Retry-After) when the package exists but its publisher configuration is not yet active.
- Lenguaje dominante
- JavaScript
- Estrellas
- 10.3k
- Forks
- 5k
- Merge medio
- 4 d 11 h
- PR fusionados (30 d)
- 26
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de npm/cli
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 2 días
-
[BUG] scripts/dependency-graph.js splits npm-cli-repos.txt on os.EOL, so DEPENDENCIES.md depends on the checkout's line endingsPosiblemente ocupada @saruk-vedant la tomó hace 7 días. AbiertoBug Needs Triage Triage Requested
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
npm/cli#10316 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
[BUG] npm pkg delete removes the first array item for a nonexistent propertyPosiblemente ocupada @drawliin la tomó hace 42 días. Abiertocmd:delete Priority 3
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 2 días
-
create node pr: Node.js 20 deprecation & `DEP0040` warnings loggedQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. AbiertoEngineering Priority 1
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
Los mantenedores suelen responder en 2 días
-
`npm audit signatures` does not report how many packages it skipped for want of registry keysPosiblemente ocupada @greenlincoln05 la tomó hace 63 días. AbiertoPriority 3
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
npm/cli#10018 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
Issues similares
-
docs: add SECURITY.md vulnerability reporting policyPosiblemente ocupada @AK-Lmn la tomó hoy. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
flisk-sh/linux2wasm#12 ·
Los mantenedores suelen responder en 1 día
-
possible bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Mintplex-Labs/anything-llm#7388 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 60/100
Los mantenedores suelen responder en 1 día
-
v6: Minified bootstrap.min.css is missing header infoPosiblemente ocupada @lazerg la tomó hoy. Abiertobug build confirmed has-pr v6
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
githubnext/gh-aw-workshop#6332 ·
Los mantenedores suelen responder en 1 día