Skip to content

fix(ci): use socket-registry setup action, remove pnpm/action-setup, update SHAs#1174

Open
jdalton wants to merge 5 commits intomainfrom
chore/bump-socket-registry-refs
Open

fix(ci): use socket-registry setup action, remove pnpm/action-setup, update SHAs#1174
jdalton wants to merge 5 commits intomainfrom
chore/bump-socket-registry-refs

Conversation

@jdalton
Copy link
Copy Markdown
Contributor

@jdalton jdalton commented Apr 7, 2026

Summary

Modernize CI workflows on main to use the socket-registry shared actions for pnpm and sfw-free setup, replacing the third-party pnpm/action-setup action. All socket-registry action SHAs updated to latest post-cascade main.

What changed

  • Replaced pnpm/action-setup with SocketDev/socket-registry/.github/actions/setup, which installs:

    • pnpm v10.33.0 as a checksum-verified native binary (no npm/corepack needed)
    • sfw-free (Socket Firewall) with transparent shims for all supported ecosystems: npm, yarn, pnpm, pip, uv, cargo (docs)
    • Node.js via actions/setup-node
  • Removed cache: 'pnpm' from actions/setup-node to eliminate cache-poisoning vectors flagged by zizmor

  • Updated all socket-registry SHAs to 4edf2e3c (latest main after full Layer 1-4 cascade with native pnpm, native zizmor, sfw checksums, Windows fixes)

Files changed

File Changes
ci.yml Replace pnpm/action-setup with socket-registry/setup, remove cache, update install SHA
provenance.yml Same
weekly-update.yml Same, plus update setup-git-signing and cleanup-git-signing SHAs

Third-party actions removed

Removed Replacement
pnpm/action-setup@v5 SocketDev/socket-registry/.github/actions/setup

Why this matters

Every pnpm install now runs through the Socket Firewall, which checks packages for malware before they reach the project. The sfw-free binary is downloaded once, checksum-verified, and creates transparent shims so pnpm, npm, yarn, pip, uv, and cargo all route through the firewall automatically. No code changes needed in workflows — the shims are invisible to the package managers.

Test plan

  • CI lint job passes
  • CI type-check job passes
  • CI test shards pass
  • E2E test shards pass
  • Provenance workflow still works via manual dispatch
  • Weekly update workflow still runs correctly

@jdalton jdalton enabled auto-merge (squash) April 7, 2026 20:29
@jdalton jdalton force-pushed the chore/bump-socket-registry-refs branch 3 times, most recently from 3300846 to 881f666 Compare April 8, 2026 02:39
@jdalton jdalton force-pushed the chore/bump-socket-registry-refs branch from 881f666 to 04c42a2 Compare April 8, 2026 02:51
@jdalton jdalton changed the title chore(ci): bump socket-registry action refs fix(ci): use socket-registry setup action, remove pnpm/action-setup, update SHAs Apr 8, 2026
…update SHAs

Replace pnpm/action-setup with socket-registry's setup action which
provides checksum-verified native pnpm and sfw-free with shims for all
supported ecosystems (npm, yarn, pnpm, pip, uv, cargo).

Remove cache: pnpm from actions/setup-node to eliminate cache-poisoning
vectors. Update all socket-registry action SHAs to latest post-cascade
main (4edf2e3c).
@jdalton jdalton force-pushed the chore/bump-socket-registry-refs branch from 0eba3f1 to dce71c4 Compare April 8, 2026 18:41
jdalton added 2 commits April 8, 2026 14:45
Replace separate setup + install steps with a single setup-and-install
action call (checkout: false since we handle checkout ourselves).

This removes all third-party setup actions:
- pnpm/action-setup (replaced by socket-registry/setup's native pnpm)
- actions/setup-node (replaced by socket-registry/setup's Node.js)

Node version defaults to 25.9.0 from socket-registry. Test matrix jobs
override with node-version input.
@jdalton jdalton force-pushed the chore/bump-socket-registry-refs branch from 129c70f to 56f7795 Compare April 8, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant