Visitar URL original
Verify npm dependency signatures before builds by eifinger · Pull Request #426 · astral-sh/ruff-action · GitHub
Skip to content

Verify npm dependency signatures before builds - #426

Merged
eifinger merged 1 commit into
mainfrom
fix/pr-402-npm-signature-verification
Oct 14, 2026
Merged

eifinger merged 1 commit into
mainfrom
fix/pr-402-npm-signature-verification

Conversation

@eifinger

Copy link
Copy Markdown
Collaborator

Summary

Supersedes #402 with its changes rebased onto current main and the merge conflict resolved. The original PR is left unchanged.

  • Run npm audit signatures after installation and before npm run all in the test and checksum-update workflows.
  • Preserve the current JSON checksum manifest path (src/download/checksum/known-checksums.json).
  • Verify registry signatures and available provenance attestations without requiring every dependency to publish provenance.

Related: astral-sh/setup-uv#1027 adds the same verification; #401 separately hardens npm installation defaults.

Validation

Using Node 24.19.0 (matching .nvmrc) and npm 11.10.0:

  • npm ci --ignore-scripts passed (reports existing dependency vulnerabilities; dependency files are unchanged).
  • npm audit signatures passed: 547 registry signatures and 97 attestations verified.
  • npm run all passed: 7 suites, 99 tests; no generated or formatting changes.
  • actionlint passed.
  • zizmor reports the same 26 low-severity findings on this branch and main, with no new findings.
  • git diff --check passed.

Refs: pi-session 01a1399e-1a99-7314-9573-9a982ea1bb3f

Rebase PR #402 onto current main, preserving the JSON checksum manifest path while retaining npm signature verification in both workflows.

Refs: pi-session 01a1399e-1a99-7314-9573-9a982ea1bb3f
@eifinger eifinger added the ci Changes to automatic workflows label Oct 14, 2026
@eifinger
eifinger merged commit f2f4668 into main Oct 14, 2026
72 checks passed
@eifinger
eifinger deleted the fix/pr-402-npm-signature-verification branch October 14, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Changes to automatic workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants