From 5408827926966a0a4f7c4af3dfaba6baa27e1179 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 9 Oct 2026 19:09:48 +0000 Subject: [PATCH 1/2] ci: install Socket Firewall on every job Every job installs Socket Firewall after checkout. Install steps run sfw pnpm install --frozen-lockfile. The action pin is v1.3.2. The firewall version is 1.15.4. Co-authored-by: Jared Wray --- .github/workflows/code-coverage.yaml | 8 +++++++- .github/workflows/codeql.yaml | 6 ++++++ .github/workflows/release.yaml | 8 +++++++- .github/workflows/tests.yaml | 8 +++++++- DEFENSE_IN_DEPTH.md | 4 ++-- 5 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code-coverage.yaml b/.github/workflows/code-coverage.yaml index 54e690c..7e22150 100644 --- a/.github/workflows/code-coverage.yaml +++ b/.github/workflows/code-coverage.yaml @@ -25,6 +25,12 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - name: Install Socket Firewall + uses: SocketDev/action@ba6de6cc0565af1f42295590380973573297e31f # v1.3.2 + with: + mode: firewall-free + firewall-version: "1.15.4" + - name: Install pnpm uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 @@ -35,7 +41,7 @@ jobs: cache: 'pnpm' - name: Install Dependencies - run: pnpm install --frozen-lockfile + run: sfw pnpm install --frozen-lockfile - name: Build run: pnpm build diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 15ea0d4..58ced52 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -41,6 +41,12 @@ jobs: - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - name: Install Socket Firewall + uses: SocketDev/action@ba6de6cc0565af1f42295590380973573297e31f # v1.3.2 + with: + mode: firewall-free + firewall-version: "1.15.4" + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3d4298f..fe6b383 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,6 +25,12 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - name: Install Socket Firewall + uses: SocketDev/action@ba6de6cc0565af1f42295590380973573297e31f # v1.3.2 + with: + mode: firewall-free + firewall-version: "1.15.4" + - name: Install pnpm uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 @@ -35,7 +41,7 @@ jobs: cache: 'pnpm' - name: Install Dependencies - run: pnpm install --frozen-lockfile + run: sfw pnpm install --frozen-lockfile - name: Build run: pnpm build diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 44da9d9..4ff2d25 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -29,6 +29,12 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - name: Install Socket Firewall + uses: SocketDev/action@ba6de6cc0565af1f42295590380973573297e31f # v1.3.2 + with: + mode: firewall-free + firewall-version: "1.15.4" + - name: Install pnpm uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 @@ -39,7 +45,7 @@ jobs: cache: 'pnpm' - name: Install Dependencies - run: pnpm install --frozen-lockfile + run: sfw pnpm install --frozen-lockfile - name: Build run: pnpm build diff --git a/DEFENSE_IN_DEPTH.md b/DEFENSE_IN_DEPTH.md index 4ecad6e..c9a950d 100644 --- a/DEFENSE_IN_DEPTH.md +++ b/DEFENSE_IN_DEPTH.md @@ -21,14 +21,14 @@ Profile: npm library · public - [x] `trustPolicy: no-downgrade`; no first-party `trustPolicyExclude` — PR #163 - [x] Lifecycle scripts blocked: `strictDepBuilds: true`, `dangerouslyAllowAllBuilds: false`, `allowBuilds: {}` baseline — PR #164 - [x] `blockExoticSubdeps: true` — PR #165 -- [ ] Lockfile committed; CI installs with `pnpm install --frozen-lockfile` (PR #166 pending) +- [x] Lockfile committed; CI installs with `pnpm install --frozen-lockfile` — PR #166 - [x] No `.github/dependabot.yml`; other dependency-update tools (if any) open PRs only — never auto-merge — verified 2026-10-08 ## 4. GitHub Actions - [x] `permissions: contents: read` (or `{}` + per-job grants) on every workflow — verified 2026-10-08 - [x] No `contents: write` except jobs whose purpose is mutating the repo (GitHub Release, Changesets version PR); generated output is a workflow artifact, never committed back from CI — verified 2026-10-08 - [x] Every action pinned to a full commit SHA (`npx actions-up`) — verified 2026-10-08 -- [ ] Every job installs Socket Firewall (`SocketDev/action` SHA-pinned, `firewall-version` pinned); `pnpm install` / `npm install` run as `sfw pnpm install` / `sfw npm install` +- [ ] Every job installs Socket Firewall (`SocketDev/action` SHA-pinned, `firewall-version` pinned); `pnpm install` / `npm install` run as `sfw pnpm install` / `sfw npm install` (PR pending) - [ ] `.github/workflows/check-workflows.yaml` lints workflows with zizmor on every PR - [ ] Workflow `name:` and job `name:` contain no spaces (kebab-case) so they can be set as required status checks - [ ] `persist-credentials: false` on checkouts that don't push From 6d9e87ae9ebea5bebaff72310a0d933e818e93f4 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 9 Oct 2026 19:10:03 +0000 Subject: [PATCH 2/2] docs: record pull request 167 on the Socket Firewall item The checklist names the open pull request. Co-authored-by: Jared Wray --- DEFENSE_IN_DEPTH.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEFENSE_IN_DEPTH.md b/DEFENSE_IN_DEPTH.md index c9a950d..5655462 100644 --- a/DEFENSE_IN_DEPTH.md +++ b/DEFENSE_IN_DEPTH.md @@ -28,7 +28,7 @@ Profile: npm library · public - [x] `permissions: contents: read` (or `{}` + per-job grants) on every workflow — verified 2026-10-08 - [x] No `contents: write` except jobs whose purpose is mutating the repo (GitHub Release, Changesets version PR); generated output is a workflow artifact, never committed back from CI — verified 2026-10-08 - [x] Every action pinned to a full commit SHA (`npx actions-up`) — verified 2026-10-08 -- [ ] Every job installs Socket Firewall (`SocketDev/action` SHA-pinned, `firewall-version` pinned); `pnpm install` / `npm install` run as `sfw pnpm install` / `sfw npm install` (PR pending) +- [ ] Every job installs Socket Firewall (`SocketDev/action` SHA-pinned, `firewall-version` pinned); `pnpm install` / `npm install` run as `sfw pnpm install` / `sfw npm install` (PR #167 pending) - [ ] `.github/workflows/check-workflows.yaml` lints workflows with zizmor on every PR - [ ] Workflow `name:` and job `name:` contain no spaces (kebab-case) so they can be set as required status checks - [ ] `persist-credentials: false` on checkouts that don't push