CI: npm audit fails main when the npm registry is down #263

Closed
opened 2026-10-22 02:48:25 +00:00 by littlefox · 1 comment
Owner

Main run #432 (the merge of #261) went red in the e2e job's npm audit --audit-level=high step: 503 Service Unavailable from registry.npmjs.org's advisory endpoint ("audit endpoint returned an error"). The code and the other jobs were fine.

Fix, as for cargo-deny's advisory fetch (#143): a script that retries when the endpoint errors, fails on vulnerabilities as now, and after a few failed tries of the endpoint itself warns and passes (the next run audits again).

Main run #432 (the merge of #261) went red in the e2e job's `npm audit --audit-level=high` step: `503 Service Unavailable` from registry.npmjs.org's advisory endpoint ("audit endpoint returned an error"). The code and the other jobs were fine. Fix, as for cargo-deny's advisory fetch (#143): a script that retries when the endpoint errors, fails on vulnerabilities as now, and after a few failed tries of the endpoint itself warns and passes (the next run audits again).
Author
Owner

Merged in #264; main run #437 green. Its CI ran the new step while the endpoint answered again.

Merged in #264; main run #437 green. Its CI ran the new step while the endpoint answered again.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
littlefox/neokom#263
No description provided.