Skip to content

Add one-command security tools setup and pre-push scanning#250

Open
John-David Dalton (jdalton) wants to merge 4 commits intomainfrom
feat/setup-security-tools
Open

Add one-command security tools setup and pre-push scanning#250
John-David Dalton (jdalton) wants to merge 4 commits intomainfrom
feat/setup-security-tools

Conversation

@jdalton
Copy link
Copy Markdown
Collaborator

Summary

  • Adds /setup-security-tools command to set up AgentShield, zizmor, and Socket Firewall in one step
  • Downloads binaries with SHA-256 verification, creates PATH shims (bash + Windows .cmd)
  • Adds blocking AgentShield and zizmor scans to pre-push hook
  • Updates security-scan SKILL.md with hook cross-reference

Files

  • .claude/hooks/setup-security-tools/ - Self-contained setup script with pinned deps
  • .claude/commands/setup-security-tools.md - Claude Code slash command
  • .git-hooks/pre-push - Updated with AgentShield + zizmor pre-checks
  • .claude/skills/security-scan/SKILL.md - Added hook cross-reference
  • .gitignore - Updated to track .claude/hooks/ and .claude/settings.json

Test plan

  • Run /setup-security-tools in Claude Code and verify all three tools install
  • Verify git push triggers AgentShield and zizmor checks
  • Verify SFW shims are created at ~/.socket/sfw/shims/
  • Verify re-running is idempotent (skips cached binaries)

- Migrate to external-tools.json + zod validation (from socket-cli)
- Add external-tools.json with zizmor, sfw-free, sfw-enterprise configs
- Fix woodruffw/zizmor → zizmorcore/zizmor (org was renamed)
- Fix zizmor download URL in checkout action
- Add zod dependency for config validation
Replace custom ~/.socket/zizmor/bin/ cache with dlx downloadBinary API.
Synced from socket-cli.
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