Skip to content

Commit 3680360

Browse files
committed
security: implement supply chain protections
- Add minimumReleaseAge (24h) and store integrity checks in pnpm-workspace.yaml - Enforce pnpm usage via only-allow preinstall script - Add pnpm audit to CI workflow - Resolve known vulnerabilities in @modelcontextprotocol/sdk and vitest/esbuild
1 parent 9c536b7 commit 3680360

File tree

4 files changed

+921
-533
lines changed

4 files changed

+921
-533
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ jobs:
2222
cache: 'pnpm'
2323

2424
- run: pnpm install --frozen-lockfile
25+
- run: pnpm audit
2526
- run: pnpm build
2627
- run: pnpm test

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
},
7373
"license": "MIT",
7474
"scripts": {
75+
"preinstall": "npx only-allow pnpm",
7576
"build": "tsc",
7677
"prepublishOnly": "npm run build",
7778
"start": "node dist/index.js",
@@ -82,7 +83,7 @@
8283
},
8384
"dependencies": {
8485
"@lancedb/lancedb": "^0.4.0",
85-
"@modelcontextprotocol/sdk": "^0.6.0",
86+
"@modelcontextprotocol/sdk": "^1.25.1",
8687
"@typescript-eslint/typescript-estree": "^7.0.0",
8788
"@xenova/transformers": "^2.17.0",
8889
"fuse.js": "^7.0.0",
@@ -97,6 +98,6 @@
9798
"@types/node": "^20.11.24",
9899
"@types/uuid": "^9.0.8",
99100
"ts-node": "^10.9.2",
100-
"vitest": "^1.3.0"
101+
"vitest": "^4.0.16"
101102
}
102103
}

0 commit comments

Comments
 (0)