Bump @socketsecurity/sdk from 1.4.5 to 1.4.6 #909
test.yml
on: pull_request
Tests
/
Resolving inputs
0s
Matrix: Tests / Test
Annotations
80 errors
|
test/alert-rules.test.ts:
test/dist/alert-rules.js#L22
Error: Cannot find module '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/dist/index.js'. Please verify that the package.json has a valid "main" entry
❯ test/dist/alert-rules.js:22:11
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'MODULE_NOT_FOUND', path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json', requestPath: '@socketsecurity/sdk' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen:
test/socket-cdxgen.test.ts#L40
Error: command failed
❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22
❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22
❯ test/socket-cdxgen.test.ts:40:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { cmd: '/opt/hostedtoolcache/node/20.18.3/x64/bin/node', args: [ '/home/runner/work/socket-cli/socket-cli/bin/cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: 'node:internal/modules/cjs/loader:495\n throw err;\n ^\n\nError: Cannot find module \'/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/dist/index.js\'. Please verify that the package.json has a valid "main" entry\n at tryPackage (node:internal/modules/cjs/loader:487:19)\n at Module._findPath (node:internal/modules/cjs/loader:771:18)\n at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)\n at Module._load (node:internal/modules/cjs/loader:1051:27)\n at Module.require (node:internal/modules/cjs/loader:1311:19)\n at require (node:internal/modules/helpers:179:18)\n at Object.<anonymous> (/home/runner/work/socket-cli/socket-cli/dist/require/cli.js:21:11)\n at Module._compile (node:internal/modules/cjs/loader:1469:14)\n at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)\n at Module.load (node:internal/modules/cjs/loader:1288:32) {\n code: \'MODULE_NOT_FOUND\',\n path: \'/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json\',\n requestPath: \'@socketsecurity/sdk\'\n}\n\nNode.js v20.18.3' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward -u to cdxgen:
test/socket-cdxgen.test.ts#L69
Error: spawn.stderr includes `✖️ Unknown argument: -u`: node:internal/modules/cjs/loader:495
throw err;
^
Error: Cannot find module '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/dist/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:487:19)
at Module._findPath (node:internal/modules/cjs/loader:771:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/home/runner/work/socket-cli/socket-cli/dist/require/cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32) {
code: 'MODULE_NOT_FOUND',
path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v20.18.3
❯ Object.<anonymous> dist/require/cli.js:21:11
❯ test/socket-cdxgen.test.ts:69:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward --unknown to cdxgen:
test/socket-cdxgen.test.ts#L85
Error: spawn.stderr includes `✖️ Unknown argument: --unknown`: node:internal/modules/cjs/loader:495
throw err;
^
Error: Cannot find module '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/dist/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:487:19)
at Module._findPath (node:internal/modules/cjs/loader:771:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/home/runner/work/socket-cli/socket-cli/dist/require/cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32) {
code: 'MODULE_NOT_FOUND',
path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v20.18.3
❯ Object.<anonymous> dist/require/cli.js:21:11
❯ test/socket-cdxgen.test.ts:85:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward multiple unknown commands to cdxgen:
test/socket-cdxgen.test.ts#L100
Error: spawn.stderr includes `✖️ Unknown arguments: -u, --unknown`: node:internal/modules/cjs/loader:495
throw err;
^
Error: Cannot find module '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/dist/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:487:19)
at Module._findPath (node:internal/modules/cjs/loader:771:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/home/runner/work/socket-cli/socket-cli/dist/require/cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32) {
code: 'MODULE_NOT_FOUND',
path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v20.18.3
❯ Object.<anonymous> dist/require/cli.js:21:11
❯ test/socket-cdxgen.test.ts:100:7
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should support --help: `analytics --help`:
src/commands/analytics/cmd-analytics.test.ts#L16
Error: Snapshot `socket analytics > should support --help: `analytics --help` 1` mismatched
- Expected
+ Received
- "Look up analytics data
-
- Usage
- $ socket analytics --scope=<scope> --time=<time filter>
-
- Default parameters are set to show the organization-level analytics over the
- last 7 days.
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --file Path to a local file to save the output. Only valid with --json/--markdown. Defaults to stdout.
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --repo Name of the repository. Only valid when scope=repo
- --scope Scope of the analytics data - either 'org' or 'repo', default: org
- --time Time filter - either 7, 30 or 90, default: 7
-
- Examples
- $ socket analytics --scope=org --time=7
- $ socket analytics --scope=org --time=30
- $ socket analytics --scope=repo --repo=test-repo --time=30"
+ ""
❯ src/commands/analytics/cmd-analytics.test.ts:16:20
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`:
src/commands/analytics/cmd-analytics.test.ts#L61
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/analytics/cmd-analytics.test.ts:61:22
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should support --help: `audit-log --help`:
src/commands/audit-log/cmd-audit-log.test.ts#L16
Error: Snapshot `socket audit-log > should support --help: `audit-log --help` 1` mismatched
- Expected
+ Received
- "Look up the audit log for an organization
-
- Usage
- $ socket audit-log <org slug>
-
- This feature requires an Enterprise Plan. To learn more about getting access
- to this feature and many more, please visit https://socket.dev/pricing
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --page Page number - default is 1
- --perPage Results per page - default is 30
- --type Type of log event
-
- Examples
- $ socket audit-log FakeOrg"
+ ""
❯ src/commands/audit-log/cmd-audit-log.test.ts:16:20
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched
- Expected
+ Received
"
- _____ _ _ /---------------
- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
- |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
- |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>
-
- \x1b[31m\xd7\x1b[39m \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"
+ node:internal/modules/cjs/loader:495
+ throw err;
+ ^
+
+ Error: Cannot find module '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/dist/index.js'. Please verify that the package.json has a valid "main" entry
+ at tryPackage (node:internal/modules/cjs/loader:487:19)
+ at Module._findPath (node:internal/modules/cjs/loader:771:18)
+ at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
+ at Module._load (node:internal/modules/cjs/loader:1051:27)
+ at Module.require (node:internal/modules/cjs/loader:1311:19)
+ at require (node:internal/modules/helpers:179:18)
+ at Object.<anonymous> (/home/runner/work/socket-cli/socket-cli/dist/require/cli.js:21:11)
+ at Module._compile (node:internal/modules/cjs/loader:1469:14)
+ at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
+ at Module.load (node:internal/modules/cjs/loader:1288:32) {
+ code: 'MODULE_NOT_FOUND',
+ path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
+ requestPath: '@socketsecurity/sdk'
+ }
+
+ Node.js v20.18.3"
❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L80
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/audit-log/cmd-audit-log.test.ts:80:22
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen:
test/socket-cdxgen.test.ts#L40
Error: command failed
❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22
❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22
❯ test/socket-cdxgen.test.ts:40:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { cmd: '/opt/hostedtoolcache/node/23.10.0/x64/bin/node', args: [ '/home/runner/work/socket-cli/socket-cli/bin/cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: 'node:internal/modules/cjs/loader:523\n throw err;\n ^\n\n{\n code: \'MODULE_NOT_FOUND\',\n path: \'/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json\',\n requestPath: \'@socketsecurity/sdk\'\n}\n\nNode.js v23.10.0' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward -u to cdxgen:
test/socket-cdxgen.test.ts#L69
Error: spawn.stderr includes `✖️ Unknown argument: -u`: node:internal/modules/cjs/loader:523
throw err;
^
{
code: 'MODULE_NOT_FOUND',
path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v23.10.0
❯ test/socket-cdxgen.test.ts:69:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward --unknown to cdxgen:
test/socket-cdxgen.test.ts#L85
Error: spawn.stderr includes `✖️ Unknown argument: --unknown`: node:internal/modules/cjs/loader:523
throw err;
^
{
code: 'MODULE_NOT_FOUND',
path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v23.10.0
❯ test/socket-cdxgen.test.ts:85:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward multiple unknown commands to cdxgen:
test/socket-cdxgen.test.ts#L100
Error: spawn.stderr includes `✖️ Unknown arguments: -u, --unknown`: node:internal/modules/cjs/loader:523
throw err;
^
{
code: 'MODULE_NOT_FOUND',
path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v23.10.0
❯ test/socket-cdxgen.test.ts:100:7
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should support --help: `analytics --help`:
src/commands/analytics/cmd-analytics.test.ts#L16
Error: Snapshot `socket analytics > should support --help: `analytics --help` 1` mismatched
- Expected
+ Received
- "Look up analytics data
-
- Usage
- $ socket analytics --scope=<scope> --time=<time filter>
-
- Default parameters are set to show the organization-level analytics over the
- last 7 days.
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --file Path to a local file to save the output. Only valid with --json/--markdown. Defaults to stdout.
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --repo Name of the repository. Only valid when scope=repo
- --scope Scope of the analytics data - either 'org' or 'repo', default: org
- --time Time filter - either 7, 30 or 90, default: 7
-
- Examples
- $ socket analytics --scope=org --time=7
- $ socket analytics --scope=org --time=30
- $ socket analytics --scope=repo --repo=test-repo --time=30"
+ ""
❯ src/commands/analytics/cmd-analytics.test.ts:16:20
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`:
src/commands/analytics/cmd-analytics.test.ts#L61
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/analytics/cmd-analytics.test.ts:61:22
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should support --help: `audit-log --help`:
src/commands/audit-log/cmd-audit-log.test.ts#L16
Error: Snapshot `socket audit-log > should support --help: `audit-log --help` 1` mismatched
- Expected
+ Received
- "Look up the audit log for an organization
-
- Usage
- $ socket audit-log <org slug>
-
- This feature requires an Enterprise Plan. To learn more about getting access
- to this feature and many more, please visit https://socket.dev/pricing
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --page Page number - default is 1
- --perPage Results per page - default is 30
- --type Type of log event
-
- Examples
- $ socket audit-log FakeOrg"
+ ""
❯ src/commands/audit-log/cmd-audit-log.test.ts:16:20
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched
- Expected
+ Received
"
- _____ _ _ /---------------
- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
- |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
- |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>
-
- \x1b[31m\xd7\x1b[39m \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"
+ node:internal/modules/cjs/loader:523
+ throw err;
+ ^
+
+ {
+ code: 'MODULE_NOT_FOUND',
+ path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
+ requestPath: '@socketsecurity/sdk'
+ }
+
+ Node.js v23.10.0"
❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L80
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/audit-log/cmd-audit-log.test.ts:80:22
|
|
src/commands/cdxgen/cmd-cdxgen.test.ts > socket cdxgen > should support --help: `cdxgen --help`:
src/commands/cdxgen/cmd-cdxgen.test.ts#L16
Error: Snapshot `socket cdxgen > should support --help: `cdxgen --help` 1` mismatched
- Expected
+ Received
- "cdxgen [command]
-
- Commands:
- cdxgen completion Generate bash/zsh completion
-
- Options:
- -o, --output Output file. Default bom.json [default: "bom.json"]
- -t, --type Project type. Please refer to https://cyclonedx.github.io/cdxgen/#/PROJECT_TYPES for supported languages/platforms. [array]
- --exclude-type Project types to exclude. Please refer to https://cyclonedx.github.io/cdxgen/#/PROJECT_TYPES for supported languages/platforms.
- -r, --recurse Recurse mode suitable for mono-repos. Defaults to true. Pass --no-recurse to disable. [boolean] [default: true]
- -p, --print Print the SBOM as a table with tree. [boolean]
- -c, --resolve-class Resolve class names for packages. jars only for now. [boolean]
- --deep Perform deep searches for components. Useful while scanning C/C++ apps, live OS and oci images. [boolean]
- --server-url Dependency track url. Eg: https://deptrack.cyclonedx.io
- --skip-dt-tls-check Skip TLS certificate check when calling Dependency-Track. [boolean] [default: false]
- --api-key Dependency track api key
- --project-group Dependency track project group
- --project-name Dependency track project name. Default use the directory name
- --project-version Dependency track project version [string] [default: ""]
- --project-id Dependency track project id. Either provide the id or the project name and version together [string]
- --parent-project-id Dependency track parent project id [string]
- --required-only Include only the packages with required scope on the SBOM. Would set compositions.aggregate to incomplete unless --no-auto-compositions is passed. [boolean]
- --fail-on-error Fail if any dependency extractor fails. [boolean]
- --no-babel Do not use babel to perform usage analysis for JavaScript/TypeScript projects. [boolean]
- --generate-key-and-sign Generate an RSA public/private key pair and then sign the generated SBOM using JSON Web Signatures. [boolean]
- --server Run cdxgen as a server [boolean]
- --server-host Listen address [default: "127.0.0.1"]
- --server-port Listen port [default: "9090"]
- --install-deps Install dependencies automatically for some projects. Defaults to true but disabled for containers and oci scans. Use --no-install-deps to disable this feature. [boolean] [default: true]
- --validate Validate the generated SBOM using json schema. Defaults to true. Pass --no-validate to disable. [boolean] [default: true]
- --evidence Generate SBOM with evidence for supported languages. [boolean] [default: false]
- --spec-version CycloneDX Specification version to use. Defaults to 1.6 [number] [default: 1.6]
- --filter Filter components containing this word in purl or component.properties.value. Multiple values allowed. [array]
- --only Include components only containing this word in purl. Useful to generate BOM with first party components alone. Multiple values allowed. [array]
- --author The person(s) who created the BOM. Set this value if you're intending the modify the BOM and claim authorship. [array] [default: "OWASP Foundation"]
- --profile BOM profile to use for generation. Default generic. [choices: "appsec", "research", "operational", "threat-modeling", "license-compliance", "generic", "machine-learning", "ml", "deep-learning", "ml-deep", "ml-tiny"] [default: "generic"]
- --exclude Additional glob pattern(s) to ignore [array]
- --include-formulation Generate formulation section with git metadata and
|
|
test/alert-rules.test.ts:
test/dist/alert-rules.js#L22
Error: Cannot find module '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/dist/index.js'. Please verify that the package.json has a valid "main" entry
❯ test/dist/alert-rules.js:22:11
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'MODULE_NOT_FOUND', path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json', requestPath: '@socketsecurity/sdk' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen:
test/socket-cdxgen.test.ts#L40
Error: command failed
❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22
❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22
❯ test/socket-cdxgen.test.ts:40:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { cmd: '/opt/hostedtoolcache/node/18.20.7/x64/bin/node', args: [ '/home/runner/work/socket-cli/socket-cli/bin/cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: 'node:internal/modules/cjs/loader:451\n throw err;\n ^\n\nError: Cannot find module \'/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/dist/index.js\'. Please verify that the package.json has a valid "main" entry\n at tryPackage (node:internal/modules/cjs/loader:443:19)\n at Module._findPath (node:internal/modules/cjs/loader:711:18)\n at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)\n at Module._load (node:internal/modules/cjs/loader:981:27)\n at Module.require (node:internal/modules/cjs/loader:1231:19)\n at require (node:internal/modules/helpers:177:18)\n at Object.<anonymous> (/home/runner/work/socket-cli/socket-cli/dist/require/cli.js:21:11)\n at Module._compile (node:internal/modules/cjs/loader:1364:14)\n at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)\n at Module.load (node:internal/modules/cjs/loader:1203:32) {\n code: \'MODULE_NOT_FOUND\',\n path: \'/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json\',\n requestPath: \'@socketsecurity/sdk\'\n}\n\nNode.js v18.20.7' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward -u to cdxgen:
test/socket-cdxgen.test.ts#L69
Error: spawn.stderr includes `✖️ Unknown argument: -u`: node:internal/modules/cjs/loader:451
throw err;
^
Error: Cannot find module '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/dist/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:443:19)
at Module._findPath (node:internal/modules/cjs/loader:711:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/home/runner/work/socket-cli/socket-cli/dist/require/cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32) {
code: 'MODULE_NOT_FOUND',
path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v18.20.7
❯ Object.<anonymous> dist/require/cli.js:21:11
❯ test/socket-cdxgen.test.ts:69:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward --unknown to cdxgen:
test/socket-cdxgen.test.ts#L85
Error: spawn.stderr includes `✖️ Unknown argument: --unknown`: node:internal/modules/cjs/loader:451
throw err;
^
Error: Cannot find module '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/dist/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:443:19)
at Module._findPath (node:internal/modules/cjs/loader:711:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/home/runner/work/socket-cli/socket-cli/dist/require/cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32) {
code: 'MODULE_NOT_FOUND',
path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v18.20.7
❯ Object.<anonymous> dist/require/cli.js:21:11
❯ test/socket-cdxgen.test.ts:85:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward multiple unknown commands to cdxgen:
test/socket-cdxgen.test.ts#L100
Error: spawn.stderr includes `✖️ Unknown arguments: -u, --unknown`: node:internal/modules/cjs/loader:451
throw err;
^
Error: Cannot find module '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/dist/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:443:19)
at Module._findPath (node:internal/modules/cjs/loader:711:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/home/runner/work/socket-cli/socket-cli/dist/require/cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32) {
code: 'MODULE_NOT_FOUND',
path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v18.20.7
❯ Object.<anonymous> dist/require/cli.js:21:11
❯ test/socket-cdxgen.test.ts:100:7
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should support --help: `analytics --help`:
src/commands/analytics/cmd-analytics.test.ts#L16
Error: Snapshot `socket analytics > should support --help: `analytics --help` 1` mismatched
- Expected
+ Received
- "Look up analytics data
-
- Usage
- $ socket analytics --scope=<scope> --time=<time filter>
-
- Default parameters are set to show the organization-level analytics over the
- last 7 days.
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --file Path to a local file to save the output. Only valid with --json/--markdown. Defaults to stdout.
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --repo Name of the repository. Only valid when scope=repo
- --scope Scope of the analytics data - either 'org' or 'repo', default: org
- --time Time filter - either 7, 30 or 90, default: 7
-
- Examples
- $ socket analytics --scope=org --time=7
- $ socket analytics --scope=org --time=30
- $ socket analytics --scope=repo --repo=test-repo --time=30"
+ ""
❯ src/commands/analytics/cmd-analytics.test.ts:16:20
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`:
src/commands/analytics/cmd-analytics.test.ts#L61
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/analytics/cmd-analytics.test.ts:61:22
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should support --help: `audit-log --help`:
src/commands/audit-log/cmd-audit-log.test.ts#L16
Error: Snapshot `socket audit-log > should support --help: `audit-log --help` 1` mismatched
- Expected
+ Received
- "Look up the audit log for an organization
-
- Usage
- $ socket audit-log <org slug>
-
- This feature requires an Enterprise Plan. To learn more about getting access
- to this feature and many more, please visit https://socket.dev/pricing
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --page Page number - default is 1
- --perPage Results per page - default is 30
- --type Type of log event
-
- Examples
- $ socket audit-log FakeOrg"
+ ""
❯ src/commands/audit-log/cmd-audit-log.test.ts:16:20
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched
- Expected
+ Received
"
- _____ _ _ /---------------
- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
- |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
- |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>
-
- \x1b[31m\xd7\x1b[39m \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"
+ node:internal/modules/cjs/loader:451
+ throw err;
+ ^
+
+ Error: Cannot find module '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/dist/index.js'. Please verify that the package.json has a valid "main" entry
+ at tryPackage (node:internal/modules/cjs/loader:443:19)
+ at Module._findPath (node:internal/modules/cjs/loader:711:18)
+ at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)
+ at Module._load (node:internal/modules/cjs/loader:981:27)
+ at Module.require (node:internal/modules/cjs/loader:1231:19)
+ at require (node:internal/modules/helpers:177:18)
+ at Object.<anonymous> (/home/runner/work/socket-cli/socket-cli/dist/require/cli.js:21:11)
+ at Module._compile (node:internal/modules/cjs/loader:1364:14)
+ at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
+ at Module.load (node:internal/modules/cjs/loader:1203:32) {
+ code: 'MODULE_NOT_FOUND',
+ path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
+ requestPath: '@socketsecurity/sdk'
+ }
+
+ Node.js v18.20.7"
❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L80
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/audit-log/cmd-audit-log.test.ts:80:22
|
|
test/alert-rules.test.ts:
test/dist/alert-rules.js#L22
Error: Cannot find module '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/dist/index.js'. Please verify that the package.json has a valid "main" entry
❯ test/dist/alert-rules.js:22:11
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'MODULE_NOT_FOUND', path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json', requestPath: '@socketsecurity/sdk' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen:
test/socket-cdxgen.test.ts#L40
Error: command failed
❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22
❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22
❯ test/socket-cdxgen.test.ts:40:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { cmd: '/opt/hostedtoolcache/node/22.14.0/x64/bin/node', args: [ '/home/runner/work/socket-cli/socket-cli/bin/cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: 'node:internal/modules/cjs/loader:501\n throw err;\n ^\n\n{\n code: \'MODULE_NOT_FOUND\',\n path: \'/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json\',\n requestPath: \'@socketsecurity/sdk\'\n}\n\nNode.js v22.14.0' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward -u to cdxgen:
test/socket-cdxgen.test.ts#L69
Error: spawn.stderr includes `✖️ Unknown argument: -u`: node:internal/modules/cjs/loader:501
throw err;
^
{
code: 'MODULE_NOT_FOUND',
path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v22.14.0
❯ test/socket-cdxgen.test.ts:69:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward --unknown to cdxgen:
test/socket-cdxgen.test.ts#L85
Error: spawn.stderr includes `✖️ Unknown argument: --unknown`: node:internal/modules/cjs/loader:501
throw err;
^
{
code: 'MODULE_NOT_FOUND',
path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v22.14.0
❯ test/socket-cdxgen.test.ts:85:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward multiple unknown commands to cdxgen:
test/socket-cdxgen.test.ts#L100
Error: spawn.stderr includes `✖️ Unknown arguments: -u, --unknown`: node:internal/modules/cjs/loader:501
throw err;
^
{
code: 'MODULE_NOT_FOUND',
path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v22.14.0
❯ test/socket-cdxgen.test.ts:100:7
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should support --help: `analytics --help`:
src/commands/analytics/cmd-analytics.test.ts#L16
Error: Snapshot `socket analytics > should support --help: `analytics --help` 1` mismatched
- Expected
+ Received
- "Look up analytics data
-
- Usage
- $ socket analytics --scope=<scope> --time=<time filter>
-
- Default parameters are set to show the organization-level analytics over the
- last 7 days.
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --file Path to a local file to save the output. Only valid with --json/--markdown. Defaults to stdout.
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --repo Name of the repository. Only valid when scope=repo
- --scope Scope of the analytics data - either 'org' or 'repo', default: org
- --time Time filter - either 7, 30 or 90, default: 7
-
- Examples
- $ socket analytics --scope=org --time=7
- $ socket analytics --scope=org --time=30
- $ socket analytics --scope=repo --repo=test-repo --time=30"
+ ""
❯ src/commands/analytics/cmd-analytics.test.ts:16:20
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`:
src/commands/analytics/cmd-analytics.test.ts#L61
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/analytics/cmd-analytics.test.ts:61:22
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should support --help: `audit-log --help`:
src/commands/audit-log/cmd-audit-log.test.ts#L16
Error: Snapshot `socket audit-log > should support --help: `audit-log --help` 1` mismatched
- Expected
+ Received
- "Look up the audit log for an organization
-
- Usage
- $ socket audit-log <org slug>
-
- This feature requires an Enterprise Plan. To learn more about getting access
- to this feature and many more, please visit https://socket.dev/pricing
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --page Page number - default is 1
- --perPage Results per page - default is 30
- --type Type of log event
-
- Examples
- $ socket audit-log FakeOrg"
+ ""
❯ src/commands/audit-log/cmd-audit-log.test.ts:16:20
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched
- Expected
+ Received
"
- _____ _ _ /---------------
- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
- |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
- |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>
-
- \x1b[31m\xd7\x1b[39m \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"
+ node:internal/modules/cjs/loader:501
+ throw err;
+ ^
+
+ {
+ code: 'MODULE_NOT_FOUND',
+ path: '/home/runner/work/socket-cli/socket-cli/node_modules/@socketsecurity/sdk/package.json',
+ requestPath: '@socketsecurity/sdk'
+ }
+
+ Node.js v22.14.0"
❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L80
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/audit-log/cmd-audit-log.test.ts:80:22
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen:
test/socket-cdxgen.test.ts#L40
Error: command failed
❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22
❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22
❯ test/socket-cdxgen.test.ts:40:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { cmd: 'C:\hostedtoolcache\windows\node\23.10.0\x64\node.exe', args: [ 'D:\a\socket-cli\socket-cli\bin\cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: 'node:internal/modules/cjs/loader:523\r\n throw err;\r\n ^\r\n\r\nError: Cannot find module \'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js\'. Please verify that the package.json has a valid "main" entry\r\n at tryPackage (node:internal/modules/cjs/loader:515:19)\r\n at Function._findPath (node:internal/modules/cjs/loader:800:18)\r\n at Function._resolveFilename (node:internal/modules/cjs/loader:1391:27)\r\n at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)\r\n at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)\r\n at Function._load (node:internal/modules/cjs/loader:1215:37)\r\n at TracingChannel.traceSync (node:diagnostics_channel:322:14)\r\n at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)\r\n at Module.require (node:internal/modules/cjs/loader:1491:12)\r\n at require (node:internal/modules/helpers:135:16) {\r\n code: \'MODULE_NOT_FOUND\',\r\n path: \'\\\\?\\D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json\',\r\n requestPath: \'@socketsecurity/sdk\'\r\n}\r\n\r\nNode.js v23.10.0' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward -u to cdxgen:
test/socket-cdxgen.test.ts#L69
Error: spawn.stderr includes `× Unknown argument: -u`: node:internal/modules/cjs/loader:523
throw err;
^
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:515:19)
at Function._findPath (node:internal/modules/cjs/loader:800:18)
at Function._resolveFilename (node:internal/modules/cjs/loader:1391:27)
at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)
at Function._load (node:internal/modules/cjs/loader:1215:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.require (node:internal/modules/cjs/loader:1491:12)
at require (node:internal/modules/helpers:135:16) {
code: 'MODULE_NOT_FOUND',
path: '\\\\?\\D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v23.10.0
❯ test/socket-cdxgen.test.ts:69:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward --unknown to cdxgen:
test/socket-cdxgen.test.ts#L85
Error: spawn.stderr includes `× Unknown argument: --unknown`: node:internal/modules/cjs/loader:523
throw err;
^
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:515:19)
at Function._findPath (node:internal/modules/cjs/loader:800:18)
at Function._resolveFilename (node:internal/modules/cjs/loader:1391:27)
at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)
at Function._load (node:internal/modules/cjs/loader:1215:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.require (node:internal/modules/cjs/loader:1491:12)
at require (node:internal/modules/helpers:135:16) {
code: 'MODULE_NOT_FOUND',
path: '\\\\?\\D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v23.10.0
❯ test/socket-cdxgen.test.ts:85:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward multiple unknown commands to cdxgen:
test/socket-cdxgen.test.ts#L100
Error: spawn.stderr includes `× Unknown arguments: -u, --unknown`: node:internal/modules/cjs/loader:523
throw err;
^
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:515:19)
at Function._findPath (node:internal/modules/cjs/loader:800:18)
at Function._resolveFilename (node:internal/modules/cjs/loader:1391:27)
at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)
at Function._load (node:internal/modules/cjs/loader:1215:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.require (node:internal/modules/cjs/loader:1491:12)
at require (node:internal/modules/helpers:135:16) {
code: 'MODULE_NOT_FOUND',
path: '\\\\?\\D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v23.10.0
❯ test/socket-cdxgen.test.ts:100:7
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should support --help: `analytics --help`:
src/commands/analytics/cmd-analytics.test.ts#L16
Error: Snapshot `socket analytics > should support --help: `analytics --help` 1` mismatched
- Expected
+ Received
- "Look up analytics data
-
- Usage
- $ socket analytics --scope=<scope> --time=<time filter>
-
- Default parameters are set to show the organization-level analytics over the
- last 7 days.
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --file Path to a local file to save the output. Only valid with --json/--markdown. Defaults to stdout.
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --repo Name of the repository. Only valid when scope=repo
- --scope Scope of the analytics data - either 'org' or 'repo', default: org
- --time Time filter - either 7, 30 or 90, default: 7
-
- Examples
- $ socket analytics --scope=org --time=7
- $ socket analytics --scope=org --time=30
- $ socket analytics --scope=repo --repo=test-repo --time=30"
+ ""
❯ src/commands/analytics/cmd-analytics.test.ts:16:20
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`:
src/commands/analytics/cmd-analytics.test.ts#L61
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/analytics/cmd-analytics.test.ts:61:22
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should support --help: `audit-log --help`:
src/commands/audit-log/cmd-audit-log.test.ts#L16
Error: Snapshot `socket audit-log > should support --help: `audit-log --help` 1` mismatched
- Expected
+ Received
- "Look up the audit log for an organization
-
- Usage
- $ socket audit-log <org slug>
-
- This feature requires an Enterprise Plan. To learn more about getting access
- to this feature and many more, please visit https://socket.dev/pricing
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --page Page number - default is 1
- --perPage Results per page - default is 30
- --type Type of log event
-
- Examples
- $ socket audit-log FakeOrg"
+ ""
❯ src/commands/audit-log/cmd-audit-log.test.ts:16:20
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched
- Expected
+ Received
"
- _____ _ _ /---------------
- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
- |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
- |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>
-
- \x1b[31m\xd7\x1b[39m \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"
+ node:internal/modules/cjs/loader:523\x0d
+ throw err;\x0d
+ ^\x0d
+ \x0d
+ Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry\x0d
+ at tryPackage (node:internal/modules/cjs/loader:515:19)\x0d
+ at Function._findPath (node:internal/modules/cjs/loader:800:18)\x0d
+ at Function._resolveFilename (node:internal/modules/cjs/loader:1391:27)\x0d
+ at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)\x0d
+ at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)\x0d
+ at Function._load (node:internal/modules/cjs/loader:1215:37)\x0d
+ at TracingChannel.traceSync (node:diagnostics_channel:322:14)\x0d
+ at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)\x0d
+ at Module.require (node:internal/modules/cjs/loader:1491:12)\x0d
+ at require (node:internal/modules/helpers:135:16) {\x0d
+ code: 'MODULE_NOT_FOUND',\x0d
+ path: '\\\\?\\D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',\x0d
+ requestPath: '@socketsecurity/sdk'\x0d
+ }\x0d
+ \x0d
+ Node.js v23.10.0"
❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L80
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/audit-log/cmd-audit-log.test.ts:80:22
|
|
src/commands/cdxgen/cmd-cdxgen.test.ts > socket cdxgen > should support --help: `cdxgen --help`:
src/commands/cdxgen/cmd-cdxgen.test.ts#L16
Error: Snapshot `socket cdxgen > should support --help: `cdxgen --help` 1` mismatched
- Expected
+ Received
- "cdxgen [command]
-
- Commands:
- cdxgen completion Generate bash/zsh completion
-
- Options:
- -o, --output Output file. Default bom.json [default: "bom.json"]
- -t, --type Project type. Please refer to https://cyclonedx.github.io/cdxgen/#/PROJECT_TYPES for supported languages/platforms. [array]
- --exclude-type Project types to exclude. Please refer to https://cyclonedx.github.io/cdxgen/#/PROJECT_TYPES for supported languages/platforms.
- -r, --recurse Recurse mode suitable for mono-repos. Defaults to true. Pass --no-recurse to disable. [boolean] [default: true]
- -p, --print Print the SBOM as a table with tree. [boolean]
- -c, --resolve-class Resolve class names for packages. jars only for now. [boolean]
- --deep Perform deep searches for components. Useful while scanning C/C++ apps, live OS and oci images. [boolean]
- --server-url Dependency track url. Eg: https://deptrack.cyclonedx.io
- --skip-dt-tls-check Skip TLS certificate check when calling Dependency-Track. [boolean] [default: false]
- --api-key Dependency track api key
- --project-group Dependency track project group
- --project-name Dependency track project name. Default use the directory name
- --project-version Dependency track project version [string] [default: ""]
- --project-id Dependency track project id. Either provide the id or the project name and version together [string]
- --parent-project-id Dependency track parent project id [string]
- --required-only Include only the packages with required scope on the SBOM. Would set compositions.aggregate to incomplete unless --no-auto-compositions is passed. [boolean]
- --fail-on-error Fail if any dependency extractor fails. [boolean]
- --no-babel Do not use babel to perform usage analysis for JavaScript/TypeScript projects. [boolean]
- --generate-key-and-sign Generate an RSA public/private key pair and then sign the generated SBOM using JSON Web Signatures. [boolean]
- --server Run cdxgen as a server [boolean]
- --server-host Listen address [default: "127.0.0.1"]
- --server-port Listen port [default: "9090"]
- --install-deps Install dependencies automatically for some projects. Defaults to true but disabled for containers and oci scans. Use --no-install-deps to disable this feature. [boolean] [default: true]
- --validate Validate the generated SBOM using json schema. Defaults to true. Pass --no-validate to disable. [boolean] [default: true]
- --evidence Generate SBOM with evidence for supported languages. [boolean] [default: false]
- --spec-version CycloneDX Specification version to use. Defaults to 1.6 [number] [default: 1.6]
- --filter Filter components containing this word in purl or component.properties.value. Multiple values allowed. [array]
- --only Include components only containing this word in purl. Useful to generate BOM with first party components alone. Multiple values allowed. [array]
- --author The person(s) who created the BOM. Set this value if you're intending the modify the BOM and claim authorship. [array] [default: "OWASP Foundation"]
- --profile BOM profile to use for generation. Default generic. [choices: "appsec", "research", "operational", "threat-modeling", "license-compliance", "generic", "machine-learning", "ml", "deep-learning", "ml-deep", "ml-tiny"] [default: "generic"]
- --exclude Additional glob pattern(s) to ignore [array]
- --include-formulation Generate formulation section with git metadata and
|
|
test/alert-rules.test.ts:
test/dist/alert-rules.js#L22
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
❯ test/dist/alert-rules.js:22:11
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'MODULE_NOT_FOUND', path: 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\package.json', requestPath: '@socketsecurity/sdk' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen:
test/socket-cdxgen.test.ts#L40
Error: command failed
❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22
❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22
❯ test/socket-cdxgen.test.ts:40:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { cmd: 'C:\hostedtoolcache\windows\node\20.18.3\x64\node.exe', args: [ 'D:\a\socket-cli\socket-cli\bin\cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: 'node:internal/modules/cjs/loader:495\r\n throw err;\r\n ^\r\n\r\nError: Cannot find module \'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js\'. Please verify that the package.json has a valid "main" entry\r\n at tryPackage (node:internal/modules/cjs/loader:487:19)\r\n at Module._findPath (node:internal/modules/cjs/loader:771:18)\r\n at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)\r\n at Module._load (node:internal/modules/cjs/loader:1051:27)\r\n at Module.require (node:internal/modules/cjs/loader:1311:19)\r\n at require (node:internal/modules/helpers:179:18)\r\n at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\require\cli.js:21:11)\r\n at Module._compile (node:internal/modules/cjs/loader:1469:14)\r\n at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)\r\n at Module.load (node:internal/modules/cjs/loader:1288:32) {\r\n code: \'MODULE_NOT_FOUND\',\r\n path: \'D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json\',\r\n requestPath: \'@socketsecurity/sdk\'\r\n}\r\n\r\nNode.js v20.18.3' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward -u to cdxgen:
test/socket-cdxgen.test.ts#L69
Error: spawn.stderr includes `× Unknown argument: -u`: node:internal/modules/cjs/loader:495
throw err;
^
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:487:19)
at Module._findPath (node:internal/modules/cjs/loader:771:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\require\cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32) {
code: 'MODULE_NOT_FOUND',
path: 'D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v20.18.3
❯ Object.<anonymous> dist/require/cli.js:21:11
❯ test/socket-cdxgen.test.ts:69:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward --unknown to cdxgen:
test/socket-cdxgen.test.ts#L85
Error: spawn.stderr includes `× Unknown argument: --unknown`: node:internal/modules/cjs/loader:495
throw err;
^
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:487:19)
at Module._findPath (node:internal/modules/cjs/loader:771:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\require\cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32) {
code: 'MODULE_NOT_FOUND',
path: 'D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v20.18.3
❯ Object.<anonymous> dist/require/cli.js:21:11
❯ test/socket-cdxgen.test.ts:85:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward multiple unknown commands to cdxgen:
test/socket-cdxgen.test.ts#L100
Error: spawn.stderr includes `× Unknown arguments: -u, --unknown`: node:internal/modules/cjs/loader:495
throw err;
^
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:487:19)
at Module._findPath (node:internal/modules/cjs/loader:771:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\require\cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32) {
code: 'MODULE_NOT_FOUND',
path: 'D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v20.18.3
❯ Object.<anonymous> dist/require/cli.js:21:11
❯ test/socket-cdxgen.test.ts:100:7
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should support --help: `analytics --help`:
src/commands/analytics/cmd-analytics.test.ts#L16
Error: Snapshot `socket analytics > should support --help: `analytics --help` 1` mismatched
- Expected
+ Received
- "Look up analytics data
-
- Usage
- $ socket analytics --scope=<scope> --time=<time filter>
-
- Default parameters are set to show the organization-level analytics over the
- last 7 days.
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --file Path to a local file to save the output. Only valid with --json/--markdown. Defaults to stdout.
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --repo Name of the repository. Only valid when scope=repo
- --scope Scope of the analytics data - either 'org' or 'repo', default: org
- --time Time filter - either 7, 30 or 90, default: 7
-
- Examples
- $ socket analytics --scope=org --time=7
- $ socket analytics --scope=org --time=30
- $ socket analytics --scope=repo --repo=test-repo --time=30"
+ ""
❯ src/commands/analytics/cmd-analytics.test.ts:16:20
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`:
src/commands/analytics/cmd-analytics.test.ts#L61
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/analytics/cmd-analytics.test.ts:61:22
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should support --help: `audit-log --help`:
src/commands/audit-log/cmd-audit-log.test.ts#L16
Error: Snapshot `socket audit-log > should support --help: `audit-log --help` 1` mismatched
- Expected
+ Received
- "Look up the audit log for an organization
-
- Usage
- $ socket audit-log <org slug>
-
- This feature requires an Enterprise Plan. To learn more about getting access
- to this feature and many more, please visit https://socket.dev/pricing
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --page Page number - default is 1
- --perPage Results per page - default is 30
- --type Type of log event
-
- Examples
- $ socket audit-log FakeOrg"
+ ""
❯ src/commands/audit-log/cmd-audit-log.test.ts:16:20
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched
- Expected
+ Received
"
- _____ _ _ /---------------
- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
- |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
- |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>
-
- \x1b[31m\xd7\x1b[39m \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"
+ node:internal/modules/cjs/loader:495\x0d
+ throw err;\x0d
+ ^\x0d
+ \x0d
+ Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry\x0d
+ at tryPackage (node:internal/modules/cjs/loader:487:19)\x0d
+ at Module._findPath (node:internal/modules/cjs/loader:771:18)\x0d
+ at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)\x0d
+ at Module._load (node:internal/modules/cjs/loader:1051:27)\x0d
+ at Module.require (node:internal/modules/cjs/loader:1311:19)\x0d
+ at require (node:internal/modules/helpers:179:18)\x0d
+ at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\require\cli.js:21:11)\x0d
+ at Module._compile (node:internal/modules/cjs/loader:1469:14)\x0d
+ at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)\x0d
+ at Module.load (node:internal/modules/cjs/loader:1288:32) {\x0d
+ code: 'MODULE_NOT_FOUND',\x0d
+ path: 'D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',\x0d
+ requestPath: '@socketsecurity/sdk'\x0d
+ }\x0d
+ \x0d
+ Node.js v20.18.3"
❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L80
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/audit-log/cmd-audit-log.test.ts:80:22
|
|
test/alert-rules.test.ts:
test/dist/alert-rules.js#L22
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
❯ test/dist/alert-rules.js:22:11
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'MODULE_NOT_FOUND', path: '\\?\D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\package.json', requestPath: '@socketsecurity/sdk' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen:
test/socket-cdxgen.test.ts#L40
Error: command failed
❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22
❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22
❯ test/socket-cdxgen.test.ts:40:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { cmd: 'C:\hostedtoolcache\windows\node\22.14.0\x64\node.exe', args: [ 'D:\a\socket-cli\socket-cli\bin\cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: 'node:internal/modules/cjs/loader:501\r\n throw err;\r\n ^\r\n\r\nError: Cannot find module \'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js\'. Please verify that the package.json has a valid "main" entry\r\n at tryPackage (node:internal/modules/cjs/loader:493:19)\r\n at Function._findPath (node:internal/modules/cjs/loader:775:18)\r\n at Function._resolveFilename (node:internal/modules/cjs/loader:1211:27)\r\n at Function._load (node:internal/modules/cjs/loader:1055:27)\r\n at TracingChannel.traceSync (node:diagnostics_channel:322:14)\r\n at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)\r\n at Module.require (node:internal/modules/cjs/loader:1311:12)\r\n at require (node:internal/modules/helpers:136:16)\r\n at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\module-sync\cli.js:21:11)\r\n at Module._compile (node:internal/modules/cjs/loader:1554:14) {\r\n code: \'MODULE_NOT_FOUND\',\r\n path: \'\\\\?\\D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json\',\r\n requestPath: \'@socketsecurity/sdk\'\r\n}\r\n\r\nNode.js v22.14.0' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward -u to cdxgen:
test/socket-cdxgen.test.ts#L69
Error: spawn.stderr includes `× Unknown argument: -u`: node:internal/modules/cjs/loader:501
throw err;
^
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:493:19)
at Function._findPath (node:internal/modules/cjs/loader:775:18)
at Function._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at Function._load (node:internal/modules/cjs/loader:1055:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at Module.require (node:internal/modules/cjs/loader:1311:12)
at require (node:internal/modules/helpers:136:16)
at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\module-sync\cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1554:14) {
code: 'MODULE_NOT_FOUND',
path: '\\\\?\\D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v22.14.0
❯ Object.<anonymous> dist/module-sync/cli.js:21:11
❯ test/socket-cdxgen.test.ts:69:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward --unknown to cdxgen:
test/socket-cdxgen.test.ts#L85
Error: spawn.stderr includes `× Unknown argument: --unknown`: node:internal/modules/cjs/loader:501
throw err;
^
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:493:19)
at Function._findPath (node:internal/modules/cjs/loader:775:18)
at Function._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at Function._load (node:internal/modules/cjs/loader:1055:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at Module.require (node:internal/modules/cjs/loader:1311:12)
at require (node:internal/modules/helpers:136:16)
at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\module-sync\cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1554:14) {
code: 'MODULE_NOT_FOUND',
path: '\\\\?\\D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v22.14.0
❯ Object.<anonymous> dist/module-sync/cli.js:21:11
❯ test/socket-cdxgen.test.ts:85:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward multiple unknown commands to cdxgen:
test/socket-cdxgen.test.ts#L100
Error: spawn.stderr includes `× Unknown arguments: -u, --unknown`: node:internal/modules/cjs/loader:501
throw err;
^
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:493:19)
at Function._findPath (node:internal/modules/cjs/loader:775:18)
at Function._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at Function._load (node:internal/modules/cjs/loader:1055:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
at Module.require (node:internal/modules/cjs/loader:1311:12)
at require (node:internal/modules/helpers:136:16)
at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\module-sync\cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1554:14) {
code: 'MODULE_NOT_FOUND',
path: '\\\\?\\D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v22.14.0
❯ Object.<anonymous> dist/module-sync/cli.js:21:11
❯ test/socket-cdxgen.test.ts:100:7
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should support --help: `analytics --help`:
src/commands/analytics/cmd-analytics.test.ts#L16
Error: Snapshot `socket analytics > should support --help: `analytics --help` 1` mismatched
- Expected
+ Received
- "Look up analytics data
-
- Usage
- $ socket analytics --scope=<scope> --time=<time filter>
-
- Default parameters are set to show the organization-level analytics over the
- last 7 days.
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --file Path to a local file to save the output. Only valid with --json/--markdown. Defaults to stdout.
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --repo Name of the repository. Only valid when scope=repo
- --scope Scope of the analytics data - either 'org' or 'repo', default: org
- --time Time filter - either 7, 30 or 90, default: 7
-
- Examples
- $ socket analytics --scope=org --time=7
- $ socket analytics --scope=org --time=30
- $ socket analytics --scope=repo --repo=test-repo --time=30"
+ ""
❯ src/commands/analytics/cmd-analytics.test.ts:16:20
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`:
src/commands/analytics/cmd-analytics.test.ts#L61
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/analytics/cmd-analytics.test.ts:61:22
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should support --help: `audit-log --help`:
src/commands/audit-log/cmd-audit-log.test.ts#L16
Error: Snapshot `socket audit-log > should support --help: `audit-log --help` 1` mismatched
- Expected
+ Received
- "Look up the audit log for an organization
-
- Usage
- $ socket audit-log <org slug>
-
- This feature requires an Enterprise Plan. To learn more about getting access
- to this feature and many more, please visit https://socket.dev/pricing
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --page Page number - default is 1
- --perPage Results per page - default is 30
- --type Type of log event
-
- Examples
- $ socket audit-log FakeOrg"
+ ""
❯ src/commands/audit-log/cmd-audit-log.test.ts:16:20
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched
- Expected
+ Received
"
- _____ _ _ /---------------
- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
- |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
- |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>
-
- \x1b[31m\xd7\x1b[39m \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"
+ node:internal/modules/cjs/loader:501\x0d
+ throw err;\x0d
+ ^\x0d
+ \x0d
+ Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry\x0d
+ at tryPackage (node:internal/modules/cjs/loader:493:19)\x0d
+ at Function._findPath (node:internal/modules/cjs/loader:775:18)\x0d
+ at Function._resolveFilename (node:internal/modules/cjs/loader:1211:27)\x0d
+ at Function._load (node:internal/modules/cjs/loader:1055:27)\x0d
+ at TracingChannel.traceSync (node:diagnostics_channel:322:14)\x0d
+ at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)\x0d
+ at Module.require (node:internal/modules/cjs/loader:1311:12)\x0d
+ at require (node:internal/modules/helpers:136:16)\x0d
+ at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\module-sync\cli.js:21:11)\x0d
+ at Module._compile (node:internal/modules/cjs/loader:1554:14) {\x0d
+ code: 'MODULE_NOT_FOUND',\x0d
+ path: '\\\\?\\D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',\x0d
+ requestPath: '@socketsecurity/sdk'\x0d
+ }\x0d
+ \x0d
+ Node.js v22.14.0"
❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L80
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/audit-log/cmd-audit-log.test.ts:80:22
|
|
test/alert-rules.test.ts:
test/dist/alert-rules.js#L22
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
❯ test/dist/alert-rules.js:22:11
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'MODULE_NOT_FOUND', path: 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\package.json', requestPath: '@socketsecurity/sdk' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > should forwards known commands to cdxgen:
test/socket-cdxgen.test.ts#L40
Error: command failed
❯ promiseSpawn node_modules/@npmcli/promise-spawn/lib/index.js:22:22
❯ spawn node_modules/@socketsecurity/registry/lib/spawn.js:32:22
❯ test/socket-cdxgen.test.ts:40:27
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { cmd: 'C:\hostedtoolcache\windows\node\18.20.7\x64\node.exe', args: [ 'D:\a\socket-cli\socket-cli\bin\cli.js', 'cdxgen', '--yes', '-h' ], code: 1, signal: null, stdout: '', stderr: 'node:internal/modules/cjs/loader:451\r\n throw err;\r\n ^\r\n\r\nError: Cannot find module \'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js\'. Please verify that the package.json has a valid "main" entry\r\n at tryPackage (node:internal/modules/cjs/loader:443:19)\r\n at Module._findPath (node:internal/modules/cjs/loader:711:18)\r\n at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)\r\n at Module._load (node:internal/modules/cjs/loader:981:27)\r\n at Module.require (node:internal/modules/cjs/loader:1231:19)\r\n at require (node:internal/modules/helpers:177:18)\r\n at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\require\cli.js:21:11)\r\n at Module._compile (node:internal/modules/cjs/loader:1364:14)\r\n at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)\r\n at Module.load (node:internal/modules/cjs/loader:1203:32) {\r\n code: \'MODULE_NOT_FOUND\',\r\n path: \'D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json\',\r\n requestPath: \'@socketsecurity/sdk\'\r\n}\r\n\r\nNode.js v18.20.7' }
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward -u to cdxgen:
test/socket-cdxgen.test.ts#L69
Error: spawn.stderr includes `× Unknown argument: -u`: node:internal/modules/cjs/loader:451
throw err;
^
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:443:19)
at Module._findPath (node:internal/modules/cjs/loader:711:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\require\cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32) {
code: 'MODULE_NOT_FOUND',
path: 'D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v18.20.7
❯ Object.<anonymous> dist/require/cli.js:21:11
❯ test/socket-cdxgen.test.ts:69:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward --unknown to cdxgen:
test/socket-cdxgen.test.ts#L85
Error: spawn.stderr includes `× Unknown argument: --unknown`: node:internal/modules/cjs/loader:451
throw err;
^
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:443:19)
at Module._findPath (node:internal/modules/cjs/loader:711:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\require\cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32) {
code: 'MODULE_NOT_FOUND',
path: 'D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v18.20.7
❯ Object.<anonymous> dist/require/cli.js:21:11
❯ test/socket-cdxgen.test.ts:85:7
|
|
test/socket-cdxgen.test.ts > Socket cdxgen command > command forwarding > should not forward multiple unknown commands to cdxgen:
test/socket-cdxgen.test.ts#L100
Error: spawn.stderr includes `× Unknown arguments: -u, --unknown`: node:internal/modules/cjs/loader:451
throw err;
^
Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:443:19)
at Module._findPath (node:internal/modules/cjs/loader:711:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\require\cli.js:21:11)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32) {
code: 'MODULE_NOT_FOUND',
path: 'D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',
requestPath: '@socketsecurity/sdk'
}
Node.js v18.20.7
❯ Object.<anonymous> dist/require/cli.js:21:11
❯ test/socket-cdxgen.test.ts:100:7
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should support --help: `analytics --help`:
src/commands/analytics/cmd-analytics.test.ts#L16
Error: Snapshot `socket analytics > should support --help: `analytics --help` 1` mismatched
- Expected
+ Received
- "Look up analytics data
-
- Usage
- $ socket analytics --scope=<scope> --time=<time filter>
-
- Default parameters are set to show the organization-level analytics over the
- last 7 days.
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --file Path to a local file to save the output. Only valid with --json/--markdown. Defaults to stdout.
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --repo Name of the repository. Only valid when scope=repo
- --scope Scope of the analytics data - either 'org' or 'repo', default: org
- --time Time filter - either 7, 30 or 90, default: 7
-
- Examples
- $ socket analytics --scope=org --time=7
- $ socket analytics --scope=org --time=30
- $ socket analytics --scope=repo --repo=test-repo --time=30"
+ ""
❯ src/commands/analytics/cmd-analytics.test.ts:16:20
|
|
src/commands/analytics/cmd-analytics.test.ts > socket analytics > should require args with just dry-run: `analytics --dry-run`:
src/commands/analytics/cmd-analytics.test.ts#L61
Error: Snapshot `socket analytics > should require args with just dry-run: `analytics --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/analytics/cmd-analytics.test.ts:61:22
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should support --help: `audit-log --help`:
src/commands/audit-log/cmd-audit-log.test.ts#L16
Error: Snapshot `socket audit-log > should support --help: `audit-log --help` 1` mismatched
- Expected
+ Received
- "Look up the audit log for an organization
-
- Usage
- $ socket audit-log <org slug>
-
- This feature requires an Enterprise Plan. To learn more about getting access
- to this feature and many more, please visit https://socket.dev/pricing
-
- Options
- --dryRun Do input validation for a command and exit 0 when input is ok
- --help Print this help.
- --json Output result as json
- --markdown Output result as markdown
- --page Page number - default is 1
- --perPage Results per page - default is 30
- --type Type of log event
-
- Examples
- $ socket audit-log FakeOrg"
+ ""
❯ src/commands/audit-log/cmd-audit-log.test.ts:16:20
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L59
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log --dry-run` 2` mismatched
- Expected
+ Received
"
- _____ _ _ /---------------
- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
- |__ | . | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
- |_____|___|___|_,_|___|_|.dev | Command: `socket audit-log`, cwd: <redacted>
-
- \x1b[31m\xd7\x1b[39m \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"
+ node:internal/modules/cjs/loader:451\x0d
+ throw err;\x0d
+ ^\x0d
+ \x0d
+ Error: Cannot find module 'D:\a\socket-cli\socket-cli\node_modules\@SocketSecurity\sdk\dist\index.js'. Please verify that the package.json has a valid "main" entry\x0d
+ at tryPackage (node:internal/modules/cjs/loader:443:19)\x0d
+ at Module._findPath (node:internal/modules/cjs/loader:711:18)\x0d
+ at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)\x0d
+ at Module._load (node:internal/modules/cjs/loader:981:27)\x0d
+ at Module.require (node:internal/modules/cjs/loader:1231:19)\x0d
+ at require (node:internal/modules/helpers:177:18)\x0d
+ at Object.<anonymous> (D:\a\socket-cli\socket-cli\dist\require\cli.js:21:11)\x0d
+ at Module._compile (node:internal/modules/cjs/loader:1364:14)\x0d
+ at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)\x0d
+ at Module.load (node:internal/modules/cjs/loader:1203:32) {\x0d
+ code: 'MODULE_NOT_FOUND',\x0d
+ path: 'D:\\a\\socket-cli\\socket-cli\\node_modules\\@SocketSecurity\\sdk\\package.json',\x0d
+ requestPath: '@socketsecurity/sdk'\x0d
+ }\x0d
+ \x0d
+ Node.js v18.20.7"
❯ src/commands/audit-log/cmd-audit-log.test.ts:59:32
|
|
src/commands/audit-log/cmd-audit-log.test.ts > socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run`:
src/commands/audit-log/cmd-audit-log.test.ts#L80
Error: Snapshot `socket audit-log > should require args with just dry-run: `audit-log fakeorg --dry-run` 1` mismatched
Expected: ""[DryRun]: Bailing now""
Received: """"
❯ src/commands/audit-log/cmd-audit-log.test.ts:80:22
|