From 04f48045a26ebf0bd5470956208a33f22597f006 Mon Sep 17 00:00:00 2001 From: Test User Date: Thu, 9 Apr 2026 13:46:39 -0400 Subject: [PATCH 1/5] chore(ci): bump socket-registry SHA to ed311907 --- .github/workflows/ci.yml | 4 ++-- .github/workflows/provenance.yml | 2 +- .github/workflows/weekly-update.yml | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50afffe..e8f83f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ permissions: jobs: ci: name: Run CI Pipeline - uses: SocketDev/socket-registry/.github/workflows/ci.yml@4edf2e3c3beff7d536e79ce43dfb61abba7cb537 # main + uses: SocketDev/socket-registry/.github/workflows/ci.yml@ed3119078118d558f095e9adf8800263166d65f9 # main with: test-setup-script: 'pnpm run build' lint-script: 'pnpm run lint --all' @@ -46,7 +46,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: SocketDev/socket-registry/.github/actions/setup-and-install@4edf2e3c3beff7d536e79ce43dfb61abba7cb537 # main + - uses: SocketDev/socket-registry/.github/actions/setup-and-install@ed3119078118d558f095e9adf8800263166d65f9 # main - name: Build project run: pnpm run build diff --git a/.github/workflows/provenance.yml b/.github/workflows/provenance.yml index 31e3015..5e64030 100644 --- a/.github/workflows/provenance.yml +++ b/.github/workflows/provenance.yml @@ -21,7 +21,7 @@ permissions: jobs: publish: - uses: SocketDev/socket-registry/.github/workflows/provenance.yml@4edf2e3c3beff7d536e79ce43dfb61abba7cb537 # main + uses: SocketDev/socket-registry/.github/workflows/provenance.yml@ed3119078118d558f095e9adf8800263166d65f9 # main with: debug: ${{ inputs.debug }} package-name: '@socketsecurity/lib' diff --git a/.github/workflows/weekly-update.yml b/.github/workflows/weekly-update.yml index cb563ba..ef8027b 100644 --- a/.github/workflows/weekly-update.yml +++ b/.github/workflows/weekly-update.yml @@ -24,7 +24,7 @@ jobs: outputs: has-updates: ${{ steps.check.outputs.has-updates }} steps: - - uses: SocketDev/socket-registry/.github/actions/setup-and-install@4edf2e3c3beff7d536e79ce43dfb61abba7cb537 # main + - uses: SocketDev/socket-registry/.github/actions/setup-and-install@ed3119078118d558f095e9adf8800263166d65f9 # main - name: Check for npm updates id: check @@ -48,7 +48,7 @@ jobs: contents: write pull-requests: write steps: - - uses: SocketDev/socket-registry/.github/actions/setup-and-install@4edf2e3c3beff7d536e79ce43dfb61abba7cb537 # main + - uses: SocketDev/socket-registry/.github/actions/setup-and-install@ed3119078118d558f095e9adf8800263166d65f9 # main - name: Create update branch id: branch @@ -60,7 +60,7 @@ jobs: git checkout -b "$BRANCH_NAME" echo "branch=$BRANCH_NAME" >> $GITHUB_OUTPUT - - uses: SocketDev/socket-registry/.github/actions/setup-git-signing@4edf2e3c3beff7d536e79ce43dfb61abba7cb537 # main + - uses: SocketDev/socket-registry/.github/actions/setup-git-signing@ed3119078118d558f095e9adf8800263166d65f9 # main with: gpg-private-key: ${{ secrets.BOT_GPG_PRIVATE_KEY }} @@ -295,7 +295,7 @@ jobs: test-output.log retention-days: 7 - - uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@4edf2e3c3beff7d536e79ce43dfb61abba7cb537 # main + - uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@ed3119078118d558f095e9adf8800263166d65f9 # main if: always() notify: From f43c7a493dd0f493ac07a306c7fa7a733002b6e1 Mon Sep 17 00:00:00 2001 From: Test User Date: Thu, 9 Apr 2026 13:50:20 -0400 Subject: [PATCH 2/5] feat(ci): pipe publish-without-sfw and SOCKET_API_KEY to provenance workflow --- .github/workflows/provenance.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/provenance.yml b/.github/workflows/provenance.yml index 5e64030..fc63d42 100644 --- a/.github/workflows/provenance.yml +++ b/.github/workflows/provenance.yml @@ -14,6 +14,11 @@ on: options: - '0' - '1' + publish-without-sfw: + description: 'Publish directly to npm, bypassing Socket firewall shims' + required: false + default: false + type: boolean permissions: contents: write # Push git tags and create GitHub releases @@ -25,5 +30,8 @@ jobs: with: debug: ${{ inputs.debug }} package-name: '@socketsecurity/lib' + publish-without-sfw: ${{ inputs.publish-without-sfw }} setup-script: 'pnpm run build' use-trusted-publishing: true + secrets: + SOCKET_API_KEY: ${{ secrets.SOCKET_API_KEY }} From 0b89fe1a231800769e680bc1d72a213805983782 Mon Sep 17 00:00:00 2001 From: Test User Date: Thu, 9 Apr 2026 16:48:39 -0400 Subject: [PATCH 3/5] chore: trim CLAUDE.md and audit skills --- .claude/commands/quality-loop.md | 2 +- .claude/commands/security-scan.md | 2 +- .claude/skills/security-scan/SKILL.md | 2 +- CLAUDE.md | 523 +++----------------------- 4 files changed, 65 insertions(+), 464 deletions(-) diff --git a/.claude/commands/quality-loop.md b/.claude/commands/quality-loop.md index ddd5937..93eb888 100644 --- a/.claude/commands/quality-loop.md +++ b/.claude/commands/quality-loop.md @@ -1,4 +1,4 @@ -Run the `/quality-scan` skill and fix all issues found. Repeat until zero issues remain or 5 iterations complete. +Runs the `/quality-scan` skill and fixes all issues found. Repeats until zero issues remain or 5 iterations complete. **Interactive only** — this command makes code changes and commits. Do not use as an automated pipeline gate. diff --git a/.claude/commands/security-scan.md b/.claude/commands/security-scan.md index 6c62968..a8eab92 100644 --- a/.claude/commands/security-scan.md +++ b/.claude/commands/security-scan.md @@ -1,3 +1,3 @@ -Run the `/security-scan` skill. This chains AgentShield (Claude config audit) → zizmor (GitHub Actions security) → security-reviewer agent (grading). +Runs the `/security-scan` skill. Chains AgentShield (Claude config audit) → zizmor (GitHub Actions security) → security-reviewer agent (grading). For a quick manual run without the full pipeline: `pnpm run security` diff --git a/.claude/skills/security-scan/SKILL.md b/.claude/skills/security-scan/SKILL.md index 0ba403f..161fb5b 100644 --- a/.claude/skills/security-scan/SKILL.md +++ b/.claude/skills/security-scan/SKILL.md @@ -1,6 +1,6 @@ --- name: security-scan -description: Run a multi-tool security scan — AgentShield for Claude config, zizmor for GitHub Actions, and optionally Socket CLI for dependency scanning. Produces an A-F graded security report. +description: Runs a multi-tool security scan — AgentShield for Claude config, zizmor for GitHub Actions, and optionally Socket CLI for dependency scanning. Produces an A-F graded security report. --- # Security Scan diff --git a/CLAUDE.md b/CLAUDE.md index 1ee8f53..efb78a8 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -2,14 +2,11 @@ **MANDATORY**: Act as principal-level engineer. Follow these guidelines exactly. -## 👤 USER CONTEXT +## USER CONTEXT - **Identify users by git credentials**: Extract name from git commit author, GitHub account, or context -- 🚨 **When identity is verified**: ALWAYS use their actual name - NEVER use "the user" or "user" -- **Direct communication**: Use "you/your" when speaking directly to the verified user -- **Discussing their work**: Use their actual name when referencing their commits/contributions +- When identity is verified: ALWAYS use their actual name, NEVER "the user" - **Example**: If git shows "John-David Dalton ", refer to them as "John-David" -- **Other contributors**: Use their actual names from commit history/context ## PRE-ACTION PROTOCOL @@ -71,7 +68,6 @@ - After ANY correction from the user: log the pattern to memory so the same mistake is never repeated - Convert mistakes into strict rules — don't just note them, enforce them -- After fixing a bug: explain why it happened and whether anything prevents that category of bug in the future ## FILE SYSTEM AS STATE @@ -85,7 +81,7 @@ The file system is working memory. Use it actively: ## HOUSEKEEPING - Before risky changes: offer to checkpoint — "want me to commit before this?" -- If a file is getting unwieldy (>400 LOC): flag it — "this is big enough to cause pain — want me to split it?" +- If a file is getting unwieldy (>400 LOC): flag it ## ABSOLUTE RULES @@ -93,43 +89,15 @@ The file system is working memory. Use it actively: - Always prefer editing existing files - Forbidden to create docs unless requested - Required to do exactly what was asked -- 🚨 **NEVER use `npx`, `pnpm dlx`, or `yarn dlx`** — use `pnpm exec ` for devDep binaries, or `pnpm run