From 506dedb6240fa88a24771f89041d35ab94f813ca Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sat, 8 Aug 2026 16:48:03 -0500 Subject: [PATCH 1/2] ci: run checks on the contrib branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit External contributions land on `contrib`, and a PR targeting a branch absent from the trigger list gets no checks at all — leaving contributors without the feedback that would have caught the failure themselves. Signed-off-by: Diego Resendez --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16f749c..8f206f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,9 @@ name: CI on: push: - branches: [develop, main] + branches: [develop, main, contrib] pull_request: - branches: [develop, main] + branches: [develop, main, contrib] jobs: build: runs-on: ubuntu-latest From 55263f2d97e2452a43c652a656e145245aecb497 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sat, 8 Aug 2026 16:54:47 -0500 Subject: [PATCH 2/2] ci: scope the audit gate to shipped dependencies, and run it last MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `npm audit` sat fifth of fifteen steps, so any advisory anywhere in the tree skipped lint, typecheck, tests and build. A high in a vitest transitive was enough to hide whether the code itself was correct — and for external contributors, whose runs need approval before they see anything at all, that turned a red X into no information. Severity is the wrong axis: a critical in the test runner reaches nobody, while a high in `reflect-metadata` reaches everyone. Scope is the right one. Production dependencies block; build tooling reports and moves on. Signed-off-by: Diego Resendez --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f206f2..3b7cb14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,16 +13,23 @@ jobs: with: node-version: '18' - run: npm ci - - run: npm audit - run: npm run lint - run: npm run format:check - run: npm run complexity:check - run: npm run typecheck - run: npm test - run: npm run build + # Supply chain, deliberately after the code gates: an advisory published by a third party + # must never decide whether a contributor gets to see their own lint and typecheck output. + # Only what we ship blocks — with `reflect-metadata` as the sole runtime dependency, a + # production advisory is rare and genuinely reaches users. Build tooling only reports. + - run: npm audit --omit=dev + - run: npm audit + continue-on-error: true - uses: actions/setup-node@v4 with: node-version: '22.12' - run: npm ci --prefix website - run: npm audit --prefix website + continue-on-error: true - run: npm run docs:build