Skip to content

permission: add --allow-env flag for environment variable access control #74926

permission: add --allow-env flag for environment variable access control

permission: add --allow-env flag for environment variable access control #74926

Triggered via pull request April 19, 2026 17:18
Status Failure
Total duration 55m 40s
Artifacts

test-macos.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 1 warning, and 1 notice
test-macOS: test/benchmark/test-benchmark-fs.js#L0
--- stderr --- (node:91138) ExperimentalWarning: stream/iter is an experimental feature and might change at any time (Use `node --trace-warnings ...` to show where the warning was created) (node:91138) ExperimentalWarning: zlib/iter is an experimental feature and might change at any time (node:95906) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:95913) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:95920) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:95927) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:95934) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:95941) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:95948) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:95955) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:95962) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:95969) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:95976) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:95983) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:95990) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:95997) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:96004) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:96011) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:96018) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:96025) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model. (Use `node --trace-warnings ...` to show where the warning was created) (node:96032) SecurityWarnin
test-macOS: test/parallel/test-permission-net-tcp.js#L37
--- stderr --- node:internal/assert/utils:146 throw error; ^ AssertionError [ERR_ASSERTION]: node:internal/errors:546 throw error; ^ RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received type number (NaN). at lookupAndConnect (node:net:1389:5) at Socket.connect (node:net:1344:5) at Object.connect (node:net:249:17) at Object.<anonymous> (/Users/runner/work/node/node/node/test/fixtures/permission/net-tcp.js:11:22) at Module._compile (node:internal/modules/cjs/loader:1829:14) at Object..js (node:internal/modules/cjs/loader:1969:10) at Module.load (node:internal/modules/cjs/loader:1552:32) at Module._load (node:internal/modules/cjs/loader:1354:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) { code: 'ERR_SOCKET_BAD_PORT' } Node.js v26.0.0-pre 1 !== 0 at Server.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-permission-net-tcp.js:37:10) at Server.<anonymous> (/Users/runner/work/node/node/node/test/common/index.js:508:15) at Object.onceWrapper (node:events:630:28) at Server.emit (node:events:509:20) at emitListeningNT (node:net:2051:10) at process.processTicksAndRejections (node:internal/process/task_queues:89:21) { generatedMessage: false, code: 'ERR_ASSERTION', actual: 1, expected: 0, operator: 'strictEqual', diff: 'simple' } Node.js v26.0.0-pre Command: out/Release/node /Users/runner/work/node/node/node/test/parallel/test-permission-net-tcp.js
test-macOS: test/parallel/test-permission-net-fetch.js#L41
--- stderr --- node:internal/assert/utils:146 throw error; ^ AssertionError [ERR_ASSERTION]: node:internal/process/promises:332 triggerUncaughtException(err, true /* fromPromise */); ^ AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected + 'ERR_INVALID_URL' - 'ERR_ACCESS_DENIED' ^ at /Users/runner/work/node/node/node/test/fixtures/permission/net-fetch.js:8:10 at /Users/runner/work/node/node/node/test/common/index.js:508:15 { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'ERR_INVALID_URL', expected: 'ERR_ACCESS_DENIED', operator: 'strictEqual', diff: 'simple' } Node.js v26.0.0-pre 1 !== 0 at Server.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-permission-net-fetch.js:41:10) at Server.<anonymous> (/Users/runner/work/node/node/node/test/common/index.js:508:15) at Object.onceWrapper (node:events:630:28) at Server.emit (node:events:521:24) at emitListeningNT (node:net:2051:10) at process.processTicksAndRejections (node:internal/process/task_queues:89:21) { generatedMessage: false, code: 'ERR_ASSERTION', actual: 1, expected: 0, operator: 'strictEqual', diff: 'simple' } Node.js v26.0.0-pre Command: out/Release/node /Users/runner/work/node/node/node/test/parallel/test-permission-net-fetch.js
test-macOS: test/parallel/test-permission-fs-write.js#L50
--- stderr --- node:internal/assert/utils:146 throw error; ^ AssertionError [ERR_ASSERTION]: node:buffer:360 throw new ERR_INVALID_ARG_TYPE( ^ TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined at Buffer.from (node:buffer:360:9) at Object.<anonymous> (/Users/runner/work/node/node/node/test/fixtures/permission/fs-write.js:19:34) at Module._compile (node:internal/modules/cjs/loader:1829:14) at Object..js (node:internal/modules/cjs/loader:1969:10) at Module.load (node:internal/modules/cjs/loader:1552:32) at Module._load (node:internal/modules/cjs/loader:1354:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { code: 'ERR_INVALID_ARG_TYPE' } Node.js v26.0.0-pre 1 !== 0 at Object.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-permission-fs-write.js:50:10) at Module._compile (node:internal/modules/cjs/loader:1829:14) at Object..js (node:internal/modules/cjs/loader:1969:10) at Module.load (node:internal/modules/cjs/loader:1552:32) at Module._load (node:internal/modules/cjs/loader:1354:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { generatedMessage: false, code: 'ERR_ASSERTION', actual: 1, expected: 0, operator: 'strictEqual', diff: 'simple' } Node.js v26.0.0-pre Command: out/Release/node --permission --allow-fs-read=* --allow-child-process /Users/runner/work/node/node/node/test/parallel/test-permission-fs-write.js
test-macOS: test/parallel/test-permission-fs-traversal-path.js#L53
--- stderr --- node:internal/assert/utils:146 throw error; ^ AssertionError [ERR_ASSERTION]: node:internal/assert/utils:146 throw error; ^ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert.ok(process.permission.has('fs.read', allowedFolder)) at Object.<anonymous> (/Users/runner/work/node/node/node/test/fixtures/permission/fs-traversal.js:24:10) at Module._compile (node:internal/modules/cjs/loader:1829:14) at Object..js (node:internal/modules/cjs/loader:1969:10) at Module.load (node:internal/modules/cjs/loader:1552:32) at Module._load (node:internal/modules/cjs/loader:1354:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Node.js v26.0.0-pre 1 !== 0 at Object.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-permission-fs-traversal-path.js:53:10) at Module._compile (node:internal/modules/cjs/loader:1829:14) at Object..js (node:internal/modules/cjs/loader:1969:10) at Module.load (node:internal/modules/cjs/loader:1552:32) at Module._load (node:internal/modules/cjs/loader:1354:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { generatedMessage: false, code: 'ERR_ASSERTION', actual: 1, expected: 0, operator: 'strictEqual', diff: 'simple' } Node.js v26.0.0-pre Command: out/Release/node --permission --allow-fs-read=* --allow-fs-write=* --allow-child-process /Users/runner/work/node/node/node/test/parallel/test-permission-fs-traversal-path.js
test-macOS: test/parallel/test-permission-fs-symlink-target-write.js#L37
--- stderr --- node:fs:2406 return binding.writeFileUtf8( ^ Error: ENOENT: no such file or directory, open '/Users/runner/work/node/node/node/test/.tmp.0/read-only/file' at Object.writeFileSync (node:fs:2406:20) at Object.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-permission-fs-symlink-target-write.js:37:4) at Module._compile (node:internal/modules/cjs/loader:1829:14) at Object..js (node:internal/modules/cjs/loader:1969:10) at Module.load (node:internal/modules/cjs/loader:1552:32) at Module._load (node:internal/modules/cjs/loader:1354:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { errno: -2, code: 'ENOENT', syscall: 'open', path: '/Users/runner/work/node/node/node/test/.tmp.0/read-only/file' } Node.js v26.0.0-pre Command: out/Release/node --permission --allow-fs-read=* --allow-fs-write=* --allow-child-process /Users/runner/work/node/node/node/test/parallel/test-permission-fs-symlink-target-write.js
test-macOS: test/parallel/test-permission-fs-symlink.js#L73
--- stderr --- node:internal/assert/utils:146 throw error; ^ AssertionError [ERR_ASSERTION]: node:internal/errors:546 throw error; ^ TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.readlinkSync (node:fs:1763:27) at Object.<anonymous> (/Users/runner/work/node/node/node/test/fixtures/permission/fs-symlink.js:23:23) at Module._compile (node:internal/modules/cjs/loader:1829:14) at Object..js (node:internal/modules/cjs/loader:1969:10) at Module.load (node:internal/modules/cjs/loader:1552:32) at Module._load (node:internal/modules/cjs/loader:1354:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { code: 'ERR_INVALID_ARG_TYPE' } Node.js v26.0.0-pre 1 !== 0 at Object.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-permission-fs-symlink.js:73:10) at Module._compile (node:internal/modules/cjs/loader:1829:14) at Object..js (node:internal/modules/cjs/loader:1969:10) at Module.load (node:internal/modules/cjs/loader:1552:32) at Module._load (node:internal/modules/cjs/loader:1354:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { generatedMessage: false, code: 'ERR_ASSERTION', actual: 1, expected: 0, operator: 'strictEqual', diff: 'simple' } Node.js v26.0.0-pre Command: out/Release/node --permission --allow-fs-read=* --allow-fs-write=* --allow-child-process /Users/runner/work/node/node/node/test/parallel/test-permission-fs-symlink.js
test-macOS: test/parallel/test-permission-fs-read.js#L50
--- stderr --- node:internal/assert/utils:146 throw error; ^ AssertionError [ERR_ASSERTION]: node:buffer:360 throw new ERR_INVALID_ARG_TYPE( ^ TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined at Buffer.from (node:buffer:360:9) at Object.<anonymous> (/Users/runner/work/node/node/node/test/fixtures/permission/fs-read.js:13:34) at Module._compile (node:internal/modules/cjs/loader:1829:14) at Object..js (node:internal/modules/cjs/loader:1969:10) at Module.load (node:internal/modules/cjs/loader:1552:32) at Module._load (node:internal/modules/cjs/loader:1354:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { code: 'ERR_INVALID_ARG_TYPE' } Node.js v26.0.0-pre 1 !== 0 at Object.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-permission-fs-read.js:50:10) at Module._compile (node:internal/modules/cjs/loader:1829:14) at Object..js (node:internal/modules/cjs/loader:1969:10) at Module.load (node:internal/modules/cjs/loader:1552:32) at Module._load (node:internal/modules/cjs/loader:1354:12) at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5) at node:internal/main/run_main_module:33:47 { generatedMessage: false, code: 'ERR_ASSERTION', actual: 1, expected: 0, operator: 'strictEqual', diff: 'simple' } Node.js v26.0.0-pre Command: out/Release/node --permission --allow-fs-read=* --allow-fs-write=* --allow-child-process /Users/runner/work/node/node/node/test/parallel/test-permission-fs-read.js
test-macOS: test/parallel/test-dotenv-edge-cases.js#L34
--- stdout --- Test failure: 'supports multiple declarations, including optional ones' Location: test/parallel/test-dotenv-edge-cases.js:16:3 AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: + actual - expected [ { + code: 1, - code: 0, signal: null, + stderr: 'node:internal/assert/utils:146\n' + + ' throw error;\n' + + ' ^\n' + + '\n' + + 'AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n' + + '+ actual - expected\n' + + '\n' + + '+ undefined\n' + + "- 'basic'\n" + + '\n' + + ' at [eval]:1:8\n' + + ' at runScriptInThisContext (node:internal/vm:219:10)\n' + + ' at node:internal/process/execution:483:12\n' + + ' at [eval]-wrapper:6:24\n' + + ' at runScriptInContext (node:internal/process/execution:481:60)\n' + + ' at evalFunction (node:internal/process/execution:315:30)\n' + + ' at evalTypeScript (node:internal/process/execution:327:3)\n' + + ' at node:internal/main/eval_string:71:3 {\n' + + ' generatedMessage: true,\n' + + " code: 'ERR_ASSERTION',\n" + + ' actual: undefined,\n' + + " expected: 'basic',\n" + + " operator: 'strictEqual',\n" + + " diff: 'simple'\n" + + '}\n' + + '\n' + + 'Node.js v26.0.0-pre\n', - stderr: '', stdout: '' }, { + code: 1, - code: 0, signal: null, + stderr: 'node:internal/assert/utils:146\n' + + ' throw error;\n' + + ' ^\n' + + '\n' + + 'AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n' + + '+ actual - expected\n' + + '\n' + + '+ undefined\n' + + "- 'basic'\n" + + '\n' + + ' at [eval]:1:8\n' + + ' at runScriptInThisContext (node:internal/vm:219:10)\n' + + ' at node:internal/process/execution:483:12\n' + + ' at [eval]-wrapper:6:24\n' + + ' at runScriptInContext (node:internal/process/execution:481:60)\n' + + ' at evalFunction (node:internal/process/execution:315:30)\n' + + ' at evalTypeScript (node:internal/process/execution:327:3)\n' + + ' at node:internal/main/eval_string:71:3 {\n' + + ' generatedMessage: true,\n' + + " code: 'ERR_ASSERTION',\n" + + ' actual: undefined,\n' + + " expected: 'basic',\n" + + " operator: 'strictEqual',\n" + + " diff: 'simple'\n" + + '}\n' + + '\n' + + 'Node.js v26.0.0-pre\n', - stderr: '', stdout: '' }, { + code: 1, - code: 0, signal: null, + stderr: 'node:internal/assert/utils:146\n' + + ' throw error;\n' + + ' ^\n' + + '\n' + + 'AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n' + + '+ actual - expected\n' + + '\n' + + '+ undefined\n' + + "- 'basic'\n" + + '\n' + + ' at [eval]:1:8\n' + + ' at runScriptInThisContext (node:internal/vm:219:10)\n' + + ' at node:internal/process/execution:483:12\n' + + ' at [eval]-wrapper:6:24\n' + + ' at runScriptInContext (node:internal/process/execution:481:60)\n' + + ' at evalFunction (node:internal/process/execution:315:30)\n' + + ' at evalTypeScript (node:internal/process/execution:327:3)\n' + + ' at node:internal/main/eval_string:71:3 {\n' + + ' generatedMessage: true,\n' + + " code: 'ERR_ASSERTION',\n" + + ' actual: undefined,\n' + + " expected: 'basic',\n" + + " operator: 'strictEqual',\n" + + " diff: 'simple'\n" + + '}\n' + + '\n' + + 'Node.js v26.0.0-pre\n', - stderr: '', stdout: '' }, { + code: 1, - code: 0, signal: null, + stderr: 'node:internal/assert/utils:146\n' + + ' throw error;\n' + + ' ^\n' + + '\n' + + 'AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n' + + '+ actual - expected\n' + +
test-macOS: test/parallel/test-cli-node-cli-manpage-options.mjs#L0
--- stderr --- node:internal/modules/run_main:107 triggerUncaughtException( ^ AssertionError [ERR_ASSERTION]: The following flag (present in `doc/api/cli.md`) is missing in the `doc/node.1` file: "--allow-env" at file:///Users/runner/work/node/node/node/test/parallel/test-cli-node-cli-manpage-options.mjs:48:14 at process.processTicksAndRejections (node:internal/process/task_queues:104:5) { generatedMessage: false, code: 'ERR_ASSERTION', actual: undefined, expected: undefined, operator: 'fail', diff: 'simple' } Node.js v26.0.0-pre Command: out/Release/node /Users/runner/work/node/node/node/test/parallel/test-cli-node-cli-manpage-options.mjs
test-macOS
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
sccache stats
76% - 3797 hits, 1171 misses, 0 errors