MCPcopy
hub / github.com/garrytan/gstack / runSlug

Function runSlug

test/gstack-slug-sanitize.test.ts:25–30  ·  view source on GitHub ↗
(cwd: string, home: string)

Source from the content-addressed store, hash-verified

23}
24
25function runSlug(cwd: string, home: string) {
26 return spawnSync([SLUG_BIN], {
27 cwd,
28 env: { ...process.env, HOME: home },
29 });
30}
31
32describe('gstack-slug cache-read sanitization', () => {
33 test('a poisoned cache file cannot inject shell metacharacters into output', () => {

Callers 1

Calls 1

spawnSyncFunction · 0.90

Tested by

no test coverage detected