Skip to content

Cleanup mock-auth #2867

Cleanup mock-auth

Cleanup mock-auth #2867

Triggered via push September 20, 2025 01:49
Status Failure
Total duration 4m 13s
Artifacts

test.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

29 errors and 3 notices
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should accept time 7 arg: `analytics 7 --dry-run --config {"apiToken":"fakeToken"}`: src/commands/analytics/cmd-analytics.test.mts#L219
Error: Snapshot `socket analytics > should accept time 7 arg: `analytics 7 --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: en***" ❯ src/commands/analytics/cmd-analytics.test.mts:219:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should accept repo with arg: `analytics repo daname --dry-run --config {"apiToken":"fakeToken"}`: src/commands/analytics/cmd-analytics.test.mts#L201
Error: Snapshot `socket analytics > should accept repo with arg: `analytics repo daname --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: en***" ❯ src/commands/analytics/cmd-analytics.test.mts:201:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should ask for repo name with repo arg: `analytics repo --dry-run --config {"apiToken":"fakeToken"}`: src/commands/analytics/cmd-analytics.test.mts#L171
Error: Snapshot `socket analytics > should ask for repo name with repo arg: `analytics repo --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: en*** \xd7 Input error: Please review the input requirements and try again \xd7 When scope=repo, repo name should be the second argument (missing) \u221a The time filter must either be 7, 30 or 90" ❯ src/commands/analytics/cmd-analytics.test.mts:171:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should accept org arg: `analytics org --dry-run --config {"apiToken":"fakeToken"}`: src/commands/analytics/cmd-analytics.test.mts#L147
Error: Snapshot `socket analytics > should accept org arg: `analytics org --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: en***" ❯ src/commands/analytics/cmd-analytics.test.mts:147:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should run to dryrun without args: `analytics --dry-run --config {"apiToken":"fakeToken"}`: src/commands/analytics/cmd-analytics.test.mts#L129
Error: Snapshot `socket analytics > should run to dryrun without args: `analytics --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: en***" ❯ src/commands/analytics/cmd-analytics.test.mts:129:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should reject legacy flags: `analytics --scope org --repo bar --dry-run --config {"apiToken":"fakeToken"}`: src/commands/analytics/cmd-analytics.test.mts#L106
Error: Snapshot `socket analytics > should reject legacy flags: `analytics --scope org --repo bar --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: en*** \xd7 Input error: Please review the input requirements and try again \xd7 Legacy flags are no longer supported. See the v1 migration guide (https://docs.socket.dev/docs/v1-migration-guide). (received legacy flags) \u221a The time filter must either be 7, 30 or 90" ❯ src/commands/analytics/cmd-analytics.test.mts:106:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should report missing token with just dry-run: `analytics --dry-run --config {}`: src/commands/analytics/cmd-analytics.test.mts#L74
Error: Snapshot `socket analytics > should report missing token with just dry-run: `analytics --dry-run --config {}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: (not set) \xd7 Input error: Please review the input requirements and try again \u221a The time filter must either be 7, 30 or 90 \xd7 This command requires a Socket API token for access (try `socket login`)" ❯ src/commands/analytics/cmd-analytics.test.mts:74:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should support --help: `analytics --help --config {}`: src/commands/analytics/cmd-analytics.test.mts#L52
Error: Snapshot `socket analytics > should support --help: `analytics --help --config {}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: (not set)" ❯ src/commands/analytics/cmd-analytics.test.mts:52:34
src/commands/cli.test.mts > socket root command > should require args with just dry-run: `mootools --dry-run --config {"apiToken":"fakeToken"}`: src/commands/cli.test.mts#L122
Error: Snapshot `socket root command > should require args with just dry-run: `mootools --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket`, cwd: <redacted>" + CLI: <redacted> | cmd: socket | org: (not set) | token: en***" ❯ src/commands/cli.test.mts:122:32
src/commands/cli.test.mts > socket root command > should support --help: `--help --config {}`: src/commands/cli.test.mts#L19
Error: Snapshot `socket root command > should support --help: `--help --config {}` 1` mismatched - Expected + Received @@ -1,10 +1,10 @@ "CLI for Socket.dev Usage $ socket <command> - $ socket scan create --json + $ socket scan create--json $ socket package score npm lodash --markdown Note: All commands have their own --help Main commands @@ -40,41 +40,16 @@ wrapper Enable or disable the Socket npm/npx wrapper Options Note: All commands have these flags even when not displayed in their help + --compact-header Use compact single-line header format (auto-enabled in CI) --config Override the local config with this JSON --dry-run Do input validation for a command and exit 0 when input is ok --help Print this help - --max-old-space-size Set Node's V8 --max-old-space-size (https://nodejs.org/api/cli.html#--max-old-space-sizesize-in-mib) option - --max-semi-space-size Set Node's V8 --max-semi-space-size (https://nodejs.org/api/cli.html#--max-semi-space-sizesize-in-mib) option - --no-banner Hide the Socket banner - --no-spinner Hide the console spinner - --version Print the app version - - Environment variables - SOCKET_CLI_API_TOKEN Set the Socket API token - SOCKET_CLI_CONFIG A JSON stringified Socket configuration object - SOCKET_CLI_GITHUB_API_URL Change the base URL for GitHub REST API calls - SOCKET_CLI_GIT_USER_EMAIL The git config `user.email` used by Socket CLI - Defaults: github-actions[bot]@users.noreply.github.com - SOCKET_CLI_GIT_USER_NAME The git config `user.name` used by Socket CLI - Defaults: github-actions[bot] - SOCKET_CLI_GITHUB_TOKEN A classic or fine-grained GitHub personal access token (https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) - Aliases: GITHUB_TOKEN - SOCKET_CLI_NO_API_TOKEN Make the default API token `undefined` - SOCKET_CLI_NPM_PATH The absolute location of the npm directory - SOCKET_CLI_ORG_SLUG Specify the Socket organization slug - - SOCKET_CLI_ACCEPT_RISKS Accept risks of a Socket wrapped npm/npx run - SOCKET_CLI_VIEW_ALL_RISKS View all risks of a Socket wrapped npm/npx run - - Environment variables for development - SOCKET_CLI_API_BASE_URL Change the base URL for Socket API calls - Defaults: The "apiBaseUrl" value of socket/settings local app data - if present, else https://api.socket.dev/v0/ - SOCKET_CLI_API_PROXY Set the proxy Socket API requests are routed through, e.g. if set to - http://127.0.0.1:9090 (https://docs.proxyman.io/troubleshooting/couldnt-see-any-requests-from-3rd-party-network-libraries) then all request are passed through that proxy - Aliases: HTTPS_PROXY, https_proxy, HTTP_PROXY, and http_proxy - SOCKET_CLI_API_TIMEOUT Set the timeout in milliseconds for Socket API requests - SOCKET_CLI_DEBUG Enable debug logging in Socket CLI - DEBUG Enable debug logging based on the debug (https://socket.dev/npm/package/debug) package" + --help-full Print full help including environment variables + --no-banner Hide the Socket banner + --no-spinner Hide the console spinner + --version Print the app version + + Environment variables [more...] + Use --help-full to view all environment variables" ❯ src/commands/cli.test.mts:19:22
test (24, windows-latest)
The operation was canceled.
test (24, windows-latest)
The strategy configuration was canceled because "test._24_ubuntu-latest" failed
test (20, windows-latest)
The operation was canceled.
test (20, windows-latest)
The strategy configuration was canceled because "test._24_ubuntu-latest" failed
test (22, windows-latest)
The operation was canceled.
test (22, windows-latest)
The strategy configuration was canceled because "test._24_ubuntu-latest" failed
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should accept time 7 arg: `analytics 7 --dry-run --config {"apiToken":"fakeToken"}`: src/commands/analytics/cmd-analytics.test.mts#L219
Error: Snapshot `socket analytics > should accept time 7 arg: `analytics 7 --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: en***" ❯ src/commands/analytics/cmd-analytics.test.mts:219:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should accept repo with arg: `analytics repo daname --dry-run --config {"apiToken":"fakeToken"}`: src/commands/analytics/cmd-analytics.test.mts#L201
Error: Snapshot `socket analytics > should accept repo with arg: `analytics repo daname --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: en***" ❯ src/commands/analytics/cmd-analytics.test.mts:201:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should ask for repo name with repo arg: `analytics repo --dry-run --config {"apiToken":"fakeToken"}`: src/commands/analytics/cmd-analytics.test.mts#L171
Error: Snapshot `socket analytics > should ask for repo name with repo arg: `analytics repo --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: en*** \xd7 Input error: Please review the input requirements and try again \xd7 When scope=repo, repo name should be the second argument (missing) \u221a The time filter must either be 7, 30 or 90" ❯ src/commands/analytics/cmd-analytics.test.mts:171:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should accept org arg: `analytics org --dry-run --config {"apiToken":"fakeToken"}`: src/commands/analytics/cmd-analytics.test.mts#L147
Error: Snapshot `socket analytics > should accept org arg: `analytics org --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: en***" ❯ src/commands/analytics/cmd-analytics.test.mts:147:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should run to dryrun without args: `analytics --dry-run --config {"apiToken":"fakeToken"}`: src/commands/analytics/cmd-analytics.test.mts#L129
Error: Snapshot `socket analytics > should run to dryrun without args: `analytics --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: en***" ❯ src/commands/analytics/cmd-analytics.test.mts:129:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should reject legacy flags: `analytics --scope org --repo bar --dry-run --config {"apiToken":"fakeToken"}`: src/commands/analytics/cmd-analytics.test.mts#L106
Error: Snapshot `socket analytics > should reject legacy flags: `analytics --scope org --repo bar --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: en*** \xd7 Input error: Please review the input requirements and try again \xd7 Legacy flags are no longer supported. See the v1 migration guide (https://docs.socket.dev/docs/v1-migration-guide). (received legacy flags) \u221a The time filter must either be 7, 30 or 90" ❯ src/commands/analytics/cmd-analytics.test.mts:106:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should report missing token with just dry-run: `analytics --dry-run --config {}`: src/commands/analytics/cmd-analytics.test.mts#L74
Error: Snapshot `socket analytics > should report missing token with just dry-run: `analytics --dry-run --config {}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: (not set) \xd7 Input error: Please review the input requirements and try again \u221a The time filter must either be 7, 30 or 90 \xd7 This command requires a Socket API token for access (try `socket login`)" ❯ src/commands/analytics/cmd-analytics.test.mts:74:32
src/commands/analytics/cmd-analytics.test.mts > socket analytics > should support --help: `analytics --help --config {}`: src/commands/analytics/cmd-analytics.test.mts#L52
Error: Snapshot `socket analytics > should support --help: `analytics --help --config {}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted>" + CLI: <redacted> | cmd: socket analytics | org: (not set) | token: (not set)" ❯ src/commands/analytics/cmd-analytics.test.mts:52:34
src/commands/cli.test.mts > socket root command > should require args with just dry-run: `mootools --dry-run --config {"apiToken":"fakeToken"}`: src/commands/cli.test.mts#L122
Error: Snapshot `socket root command > should require args with just dry-run: `mootools --dry-run --config {"apiToken":"fakeToken"}` 2` mismatched - Expected + Received " - _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI v<redacted> - |__ | * | _| '_| -_| _| | Node: <redacted>, token: <redacted>, org: <redacted> - |_____|___|___|_,_|___|_|.dev | Command: `socket`, cwd: <redacted>" + CLI: <redacted> | cmd: socket | org: (not set) | token: en***" ❯ src/commands/cli.test.mts:122:32
src/commands/cli.test.mts > socket root command > should support --help: `--help --config {}`: src/commands/cli.test.mts#L19
Error: Snapshot `socket root command > should support --help: `--help --config {}` 1` mismatched - Expected + Received @@ -1,10 +1,10 @@ "CLI for Socket.dev Usage $ socket <command> - $ socket scan create --json + $ socket scan create--json $ socket package score npm lodash --markdown Note: All commands have their own --help Main commands @@ -40,41 +40,16 @@ wrapper Enable or disable the Socket npm/npx wrapper Options Note: All commands have these flags even when not displayed in their help + --compact-header Use compact single-line header format (auto-enabled in CI) --config Override the local config with this JSON --dry-run Do input validation for a command and exit 0 when input is ok --help Print this help - --max-old-space-size Set Node's V8 --max-old-space-size (https://nodejs.org/api/cli.html#--max-old-space-sizesize-in-mib) option - --max-semi-space-size Set Node's V8 --max-semi-space-size (https://nodejs.org/api/cli.html#--max-semi-space-sizesize-in-mib) option - --no-banner Hide the Socket banner - --no-spinner Hide the console spinner - --version Print the app version - - Environment variables - SOCKET_CLI_API_TOKEN Set the Socket API token - SOCKET_CLI_CONFIG A JSON stringified Socket configuration object - SOCKET_CLI_GITHUB_API_URL Change the base URL for GitHub REST API calls - SOCKET_CLI_GIT_USER_EMAIL The git config `user.email` used by Socket CLI - Defaults: github-actions[bot]@users.noreply.github.com - SOCKET_CLI_GIT_USER_NAME The git config `user.name` used by Socket CLI - Defaults: github-actions[bot] - SOCKET_CLI_GITHUB_TOKEN A classic or fine-grained GitHub personal access token (https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) - Aliases: GITHUB_TOKEN - SOCKET_CLI_NO_API_TOKEN Make the default API token `undefined` - SOCKET_CLI_NPM_PATH The absolute location of the npm directory - SOCKET_CLI_ORG_SLUG Specify the Socket organization slug - - SOCKET_CLI_ACCEPT_RISKS Accept risks of a Socket wrapped npm/npx run - SOCKET_CLI_VIEW_ALL_RISKS View all risks of a Socket wrapped npm/npx run - - Environment variables for development - SOCKET_CLI_API_BASE_URL Change the base URL for Socket API calls - Defaults: The "apiBaseUrl" value of socket/settings local app data - if present, else https://api.socket.dev/v0/ - SOCKET_CLI_API_PROXY Set the proxy Socket API requests are routed through, e.g. if set to - http://127.0.0.1:9090 (https://docs.proxyman.io/troubleshooting/couldnt-see-any-requests-from-3rd-party-network-libraries) then all request are passed through that proxy - Aliases: HTTPS_PROXY, https_proxy, HTTP_PROXY, and http_proxy - SOCKET_CLI_API_TIMEOUT Set the timeout in milliseconds for Socket API requests - SOCKET_CLI_DEBUG Enable debug logging in Socket CLI - DEBUG Enable debug logging based on the debug (https://socket.dev/npm/package/debug) package" + --help-full Print full help including environment variables + --no-banner Hide the Socket banner + --no-spinner Hide the console spinner + --version Print the app version + + Environment variables [more...] + Use --help-full to view all environment variables" ❯ src/commands/cli.test.mts:19:22
test (22, ubuntu-latest)
The strategy configuration was canceled because "test._24_ubuntu-latest" failed
test (20, ubuntu-latest)
The operation was canceled.
test (20, ubuntu-latest)
The strategy configuration was canceled because "test._24_ubuntu-latest" failed
test (24, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
test (20, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
test (22, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677