Skip to content

Add command header and dry-run flag #693

Add command header and dry-run flag

Add command header and dry-run flag #693

Triggered via pull request February 26, 2025 15:14
@pvdzpvdz
synchronize #340
dry_header
Status Failure
Total duration 3m 40s
Artifacts

test.yml

on: pull_request
Tests  /  Resolving inputs
0s
Tests / Resolving inputs
Matrix: Tests / Test
Fit to window
Zoom out
Zoom in

Annotations

28 errors
test/dry-run.test.ts > dry-run on all commands > should support: `scan create --dry-run`: test/dry-run.test.ts#L776
Error: Snapshot `dry-run on all commands > should support: `scan create --dry-run` 2` mismatched - Expected + Received - "\x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - - - Org name as the first argument \x1b[31m(missing!)\x1b[39m - - - Repository name using --repo \x1b[31m(missing!)\x1b[39m - - - Branch name using --branch \x1b[31m(missing!)\x1b[39m - - - At least one TARGET (e.g. `.` or `./package.json`) \x1b[31m(missing)\x1b[39m" + "\x1b[31m\u2716\ufe0f\x1b[39m \x1b[41m\x1b[37mAuthentication error:\x1b[39m\x1b[49m You need to provide an API key" ❯ test/dry-run.test.ts:776:20
Tests / Test (20, ubuntu-latest)
Process completed with exit code 1.
test/dry-run.test.ts > dry-run on all commands > should support: `scan create --dry-run`: test/dry-run.test.ts#L776
Error: Snapshot `dry-run on all commands > should support: `scan create --dry-run` 2` mismatched - Expected + Received - "\x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - - - Org name as the first argument \x1b[31m(missing!)\x1b[39m - - - Repository name using --repo \x1b[31m(missing!)\x1b[39m - - - Branch name using --branch \x1b[31m(missing!)\x1b[39m - - - At least one TARGET (e.g. `.` or `./package.json`) \x1b[31m(missing)\x1b[39m" + "\x1b[31m\u2716\ufe0f\x1b[39m \x1b[41m\x1b[37mAuthentication error:\x1b[39m\x1b[49m You need to provide an API key" ❯ test/dry-run.test.ts:776:20
Tests / Test (18, ubuntu-latest)
Process completed with exit code 1.
test/dry-run.test.ts > dry-run on all commands > should support: `--dry-run`: test/dry-run.test.ts#L98
Error: Snapshot `dry-run on all commands > should support: `--dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.14.0, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket`, cwd: <redacted> + |_____|___|___|_,_|___|_|.dev | Command: `socket`, cwd: ~/work/socket-cli/socket-cli/test/socket-npm-fixtures [DryRun]: noop, call a sub-command; ok" ❯ test/dry-run.test.ts:98:30
test/dry-run.test.ts > dry-run on all commands > should support: `analytics --dry-run`: test/dry-run.test.ts#L117
Error: Snapshot `dry-run on all commands > should support: `analytics --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.14.0, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: ~/work/socket-cli/socket-cli/test/socket-npm-fixtures [DryRun] Bailing now" ❯ test/dry-run.test.ts:117:30
test/dry-run.test.ts > dry-run on all commands > should support: `audit-log --dry-run`: test/dry-run.test.ts#L136
Error: Snapshot `dry-run on all commands > should support: `audit-log --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.14.0, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: ~/work/socket-cli/socket-cli/test/socket-npm-fixtures" ❯ test/dry-run.test.ts:136:30
test/dry-run.test.ts > dry-run on all commands > should support: `cdxgen --dry-run`: test/dry-run.test.ts#L157
Error: Snapshot `dry-run on all commands > should support: `cdxgen --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.14.0, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket cdxgen`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket cdxgen`, cwd: ~/work/socket-cli/socket-cli/test/socket-npm-fixtures" ❯ test/dry-run.test.ts:157:30
test/dry-run.test.ts > dry-run on all commands > should support: `dependencies --dry-run`: test/dry-run.test.ts#L174
Error: Snapshot `dry-run on all commands > should support: `dependencies --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.14.0, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted> + |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: ~/work/socket-cli/socket-cli/test/socket-npm-fixtures [DryRun] Bailing now" ❯ test/dry-run.test.ts:174:30
test/dry-run.test.ts > dry-run on all commands > should support: `diff-scan --dry-run`: test/dry-run.test.ts#L193
Error: Snapshot `dry-run on all commands > should support: `diff-scan --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.14.0, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted> + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: ~/work/socket-cli/socket-cli/test/socket-npm-fixtures [DryRun]: noop, call a sub-command; ok" ❯ test/dry-run.test.ts:193:30
test/dry-run.test.ts > dry-run on all commands > should support: `diff-scan get --dry-run`: test/dry-run.test.ts#L212
Error: Snapshot `dry-run on all commands > should support: `diff-scan get --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.14.0, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: ~/work/socket-cli/socket-cli/test/socket-npm-fixtures" ❯ test/dry-run.test.ts:212:30
test/dry-run.test.ts > dry-run on all commands > should support: `fix --dry-run`: test/dry-run.test.ts#L237
Error: Snapshot `dry-run on all commands > should support: `fix --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.14.0, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted> + |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: ~/work/socket-cli/socket-cli/test/socket-npm-fixtures [DryRun] Bailing now" ❯ test/dry-run.test.ts:237:30
test/dry-run.test.ts > dry-run on all commands > should support: `info --dry-run`: test/dry-run.test.ts#L256
Error: Snapshot `dry-run on all commands > should support: `info --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.14.0, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket info`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket info`, cwd: ~/work/socket-cli/socket-cli/test/socket-npm-fixtures" ❯ test/dry-run.test.ts:256:30
test/dry-run.test.ts > dry-run on all commands > should support: `login --dry-run`: test/dry-run.test.ts#L279
Error: Snapshot `dry-run on all commands > should support: `login --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.14.0, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket login`, cwd: <redacted> + |_____|___|___|_,_|___|_|.dev | Command: `socket login`, cwd: ~/work/socket-cli/socket-cli/test/socket-npm-fixtures [DryRun] Bailing now" ❯ test/dry-run.test.ts:279:30
test/dry-run.test.ts > dry-run on all commands > should support: `--dry-run`: test/dry-run.test.ts#L98
Error: Snapshot `dry-run on all commands > should support: `--dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.13.1, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket`, cwd: <redacted> + |_____|___|___|_,_|___|_|.dev | Command: `socket`, cwd: D:\a\socket-cli\socket-cli\test\socket-npm-fixtures [DryRun]: noop, call a sub-command; ok" ❯ test/dry-run.test.ts:98:30
test/dry-run.test.ts > dry-run on all commands > should support: `analytics --dry-run`: test/dry-run.test.ts#L117
Error: Snapshot `dry-run on all commands > should support: `analytics --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.13.1, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: <redacted> + |_____|___|___|_,_|___|_|.dev | Command: `socket analytics`, cwd: D:\a\socket-cli\socket-cli\test\socket-npm-fixtures [DryRun] Bailing now" ❯ test/dry-run.test.ts:117:30
test/dry-run.test.ts > dry-run on all commands > should support: `audit-log --dry-run`: test/dry-run.test.ts#L136
Error: Snapshot `dry-run on all commands > should support: `audit-log --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.13.1, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: D:\a\socket-cli\socket-cli\test\socket-npm-fixtures" ❯ test/dry-run.test.ts:136:30
test/dry-run.test.ts > dry-run on all commands > should support: `cdxgen --dry-run`: test/dry-run.test.ts#L157
Error: Snapshot `dry-run on all commands > should support: `cdxgen --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.13.1, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket cdxgen`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket cdxgen`, cwd: D:\a\socket-cli\socket-cli\test\socket-npm-fixtures" ❯ test/dry-run.test.ts:157:30
test/dry-run.test.ts > dry-run on all commands > should support: `dependencies --dry-run`: test/dry-run.test.ts#L174
Error: Snapshot `dry-run on all commands > should support: `dependencies --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.13.1, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: <redacted> + |_____|___|___|_,_|___|_|.dev | Command: `socket dependencies`, cwd: D:\a\socket-cli\socket-cli\test\socket-npm-fixtures [DryRun] Bailing now" ❯ test/dry-run.test.ts:174:30
test/dry-run.test.ts > dry-run on all commands > should support: `diff-scan --dry-run`: test/dry-run.test.ts#L193
Error: Snapshot `dry-run on all commands > should support: `diff-scan --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.13.1, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: <redacted> + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan`, cwd: D:\a\socket-cli\socket-cli\test\socket-npm-fixtures [DryRun]: noop, call a sub-command; ok" ❯ test/dry-run.test.ts:193:30
test/dry-run.test.ts > dry-run on all commands > should support: `diff-scan get --dry-run`: test/dry-run.test.ts#L212
Error: Snapshot `dry-run on all commands > should support: `diff-scan get --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.13.1, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket diff-scan get`, cwd: D:\a\socket-cli\socket-cli\test\socket-npm-fixtures" ❯ test/dry-run.test.ts:212:30
test/dry-run.test.ts > dry-run on all commands > should support: `fix --dry-run`: test/dry-run.test.ts#L237
Error: Snapshot `dry-run on all commands > should support: `fix --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.13.1, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: <redacted> + |_____|___|___|_,_|___|_|.dev | Command: `socket fix`, cwd: D:\a\socket-cli\socket-cli\test\socket-npm-fixtures [DryRun] Bailing now" ❯ test/dry-run.test.ts:237:30
test/dry-run.test.ts > dry-run on all commands > should support: `info --dry-run`: test/dry-run.test.ts#L256
Error: Snapshot `dry-run on all commands > should support: `info --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.13.1, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket info`, cwd: <redacted>" + |_____|___|___|_,_|___|_|.dev | Command: `socket info`, cwd: D:\a\socket-cli\socket-cli\test\socket-npm-fixtures" ❯ test/dry-run.test.ts:256:30
test/dry-run.test.ts > dry-run on all commands > should support: `login --dry-run`: test/dry-run.test.ts#L279
Error: Snapshot `dry-run on all commands > should support: `login --dry-run` 1` mismatched - Expected + Received " _____ _ _ /--------------- - | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted> + | __|___ ___| |_ ___| |_ | Socket.dev CLI ver undefined - |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted> + |__ | . | _| '_| -_| _| | Node: v22.13.1, API token set: no - |_____|___|___|_,_|___|_|.dev | Command: `socket login`, cwd: <redacted> + |_____|___|___|_,_|___|_|.dev | Command: `socket login`, cwd: D:\a\socket-cli\socket-cli\test\socket-npm-fixtures [DryRun] Bailing now" ❯ test/dry-run.test.ts:279:30
test/dry-run.test.ts > dry-run on all commands > should support: `scan create --dry-run`: test/dry-run.test.ts#L776
Error: Snapshot `dry-run on all commands > should support: `scan create --dry-run` 2` mismatched - Expected + Received - "\x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - - - Org name as the first argument \x1b[31m(missing!)\x1b[39m - - - Repository name using --repo \x1b[31m(missing!)\x1b[39m - - - Branch name using --branch \x1b[31m(missing!)\x1b[39m - - - At least one TARGET (e.g. `.` or `./package.json`) \x1b[31m(missing)\x1b[39m" + "\x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mAuthentication error:\x1b[39m\x1b[49m You need to provide an API key" ❯ test/dry-run.test.ts:776:20
Tests / Test (18, windows-latest)
Process completed with exit code 1.
test/dry-run.test.ts > dry-run on all commands > should support: `scan create --dry-run`: test/dry-run.test.ts#L776
Error: Snapshot `dry-run on all commands > should support: `scan create --dry-run` 2` mismatched - Expected + Received - "\x1b[41m\x1b[37mInput error\x1b[39m\x1b[49m: Please provide the required fields: - - - Org name as the first argument \x1b[31m(missing!)\x1b[39m - - - Repository name using --repo \x1b[31m(missing!)\x1b[39m - - - Branch name using --branch \x1b[31m(missing!)\x1b[39m - - - At least one TARGET (e.g. `.` or `./package.json`) \x1b[31m(missing)\x1b[39m" + "\x1b[31m\xd7\x1b[39m \x1b[41m\x1b[37mAuthentication error:\x1b[39m\x1b[49m You need to provide an API key" ❯ test/dry-run.test.ts:776:20
Tests / Test (20, windows-latest)
Process completed with exit code 1.