Skip to content

Add automatic update checks for security tools (zizmor, SFW)#251

Merged
John-David Dalton (jdalton) merged 3 commits intomainfrom
feat/security-tools-updater
Apr 11, 2026
Merged

Add automatic update checks for security tools (zizmor, SFW)#251
John-David Dalton (jdalton) merged 3 commits intomainfrom
feat/security-tools-updater

Conversation

@jdalton
Copy link
Copy Markdown
Collaborator

Summary

  • Adds update.mts script that checks for new zizmor and SFW releases
  • Respects pnpm minimumReleaseAge cooldown for third-party tools (zizmor)
  • Updates Socket-owned tools (SFW) immediately without cooldown
  • Updates embedded SHA-256 checksums in index.mts when new versions are found
  • Adds phases 3b (security tools) and 3c (Claude Code version sync) to the updating skill

Files

  • .claude/hooks/setup-security-tools/update.mts - Version check and checksum update script
  • .claude/skills/updating/SKILL.md - Added phases 3b and 3c
  • .gitignore - Updated to track .claude/hooks/ and .claude/settings.json

Test plan

  • Run node .claude/hooks/setup-security-tools/update.mts and verify it checks versions
  • Verify zizmor cooldown is respected (skips if release is too new)
  • Verify SFW checksums are checked without cooldown
  • Verify /update skill document includes the new phases

- Copy canonical update.mts from socket-cli (adds objectName scoping for replaceChecksumValue)
- Fix woodruffw/zizmor → zizmorcore/zizmor in update.mts and checkout action
The updater was regex-replacing constants in index.mts (ZIZMOR_VERSION,
SFW_FREE_CHECKSUMS, etc.) but those constants no longer exist after the
migration to external-tools.json + zod validation. The updater now reads
and writes external-tools.json directly via JSON manipulation.
@jdalton John-David Dalton (jdalton) merged commit 3870747 into main Apr 11, 2026
13 checks passed
@jdalton John-David Dalton (jdalton) deleted the feat/security-tools-updater branch April 11, 2026 17:57
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