Skip to content

fix(everything): require key parameter for get-env tool to prevent env leakage #7956

fix(everything): require key parameter for get-env tool to prevent env leakage

fix(everything): require key parameter for get-env tool to prevent env leakage #7956

Triggered via pull request April 24, 2026 12:42
Status Failure
Total duration 27s
Artifacts

typescript.yml

on: pull_request
detect-packages
4s
detect-packages
Matrix: test
Matrix: build
Matrix: publish
Fit to window
Zoom out
Zoom in

Annotations

8 errors
Test everything
Process completed with exit code 1.
__tests__/tools.test.ts > Tools > get-env > should return valid JSON: src/everything/tools/get-env.ts#L32
ZodError: [ { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "key" ], "message": "Required" } ] ❯ Object.get error [as error] ../../node_modules/zod/v3/types.js:39:31 ❯ ZodObject.parse ../../node_modules/zod/v3/types.js:114:22 ❯ tools/get-env.ts:32:34 ❯ __tests__/tools.test.ts:176:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { issues: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'key' ], message: 'Required' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'key' ], message: 'Required' } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { key: [ 'Required' ] } } }
__tests__/tools.test.ts > Tools > get-env > should return all environment variables as JSON: src/everything/tools/get-env.ts#L32
ZodError: [ { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "key" ], "message": "Required" } ] ❯ Object.get error [as error] ../../node_modules/zod/v3/types.js:39:31 ❯ ZodObject.parse ../../node_modules/zod/v3/types.js:114:22 ❯ tools/get-env.ts:32:34 ❯ __tests__/tools.test.ts:160:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { issues: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'key' ], message: 'Required' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'key' ], message: 'Required' } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { key: [ 'Required' ] } } }
Test memory
The strategy configuration was canceled because "test.everything" failed
Test filesystem
The strategy configuration was canceled because "test.everything" failed
Test filesystem
The operation was canceled.
Test sequentialthinking
The strategy configuration was canceled because "test.everything" failed
Test sequentialthinking
The operation was canceled.