`npm audit signatures` intermittently fails with EMISSINGSIGNATUREKEY for packages signed with key SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 12/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, nodejs
Línea de trabajo
Start by reproducing the EMISSINGSIGNATUREKEY error from npm audit signatures --prefer-online on the lockfile that fails, and check whether the key ID SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U is missing from the keys endpoint https://registry.npmjs.org/-/npm/v1/keys on the failing responses. The issue does not name the source file that handles key lookup, so find it by searching for the error code. Done means identifying the cause of the intermittent miss and a fix that makes the result consistent across runs.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
npm audit signatures intermittently fails with EMISSINGSIGNATUREKEY on GitHub-hosted runners for packages whose attestations are signed with key ID SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U. Re-running the same job with an identical lockfile passes.
I am filing this as a blank issue because the Bug form requires confirming the latest npm, and this was observed with npm 10.9.9 (the version bundled with Node.js 22.23.4). I have not yet been able to try the latest npm, because the failure cannot be reproduced on demand.
Existing issues checked
- #8066 (closed, January 2025): constant failure after a key rotation, not intermittent.
- #10018: a different problem (reporting of skipped packages).
Current behaviour
npm error code EMISSINGSIGNATUREKEY
npm error [email protected] has attestations but no corresponding public key(s) can be found
or the same error for [email protected].
Within one failing job, three attempts about 20 seconds apart all fail. A re-run a few minutes later, with the same lockfile, passes.
Expected behaviour
For an unchanged lockfile, the result should be the same every time: either verification passes, or it fails consistently.
Steps to reproduce
npm ci --no-audit --no-fundnpm audit signatures --prefer-online
The failure is intermittent.
Observations
- Both packages' attestations are signed with key ID
SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U(logged on 26–27 October 2026). - I fetched
https://registry.npmjs.org/-/npm/v1/keys15 times from a different network. Every response included that key ID. The response headers showed it was last modified on Thu, 12 Nov 2026 07:23:58 GMT, and served from a CDN cache (cf-cache-status: HIT). - Hypothesis, not confirmed: some CDN edges reached by GitHub's runners may still have served an older copy of the key list without this key. I cannot confirm this from outside, and there may be another cause.
Occurrences (13 November 2026, UTC)
| Time (approx.) | Result |
|---|---|
| 18:00–18:15 | failed twice on the same commit; a later re-run passed |
| 18:25 | failed once; the next run passed |
| 21:02 | all three attempts failed ([email protected]); re-run passed |
| 21:49–21:50 | all three attempts failed ([email protected]); re-run passed |
| 22:36–22:37 | all three attempts failed ([email protected]); re-run passed |
Other runs on the same day with the same lockfile passed.
Environment
- npm: 10.9.9
- Node.js: v22.23.4
- OS: GitHub-hosted
ubuntu-latestrunner (Ubuntu 26.04.1 LTS) - Registry:
https://registry.npmjs.org/(default)
Workaround in use
We retry the whole command up to three times, and the job fails unless one attempt succeeds. Signature verification is never skipped or weakened.
I am happy to provide more output (with private details removed) if it helps.
- 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