@socketsecurity/cli-with-sentry 1.14.1 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +31 -6
- package/dist/cli.js +355 -206
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +7 -4
- package/dist/constants.js.map +1 -1
- package/dist/manifest-scripts/dotnet-tool/socket-facts-dotnet.dll +0 -0
- package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
- package/dist/shadow-npm-bin2.js +5 -2
- package/dist/shadow-npm-bin2.js.map +1 -1
- package/dist/shadow-pnpm-bin2.js +3 -2
- package/dist/shadow-pnpm-bin2.js.map +1 -1
- package/dist/shadow-yarn-bin.js +4 -2
- package/dist/shadow-yarn-bin.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/config/handle-config-set.d.mts.map +1 -1
- package/dist/types/commands/login/apply-login.d.mts.map +1 -1
- package/dist/types/commands/login/attempt-login.d.mts +5 -1
- package/dist/types/commands/login/attempt-login.d.mts.map +1 -1
- package/dist/types/commands/login/cmd-login.d.mts.map +1 -1
- package/dist/types/commands/logout/apply-logout.d.mts.map +1 -1
- package/dist/types/commands/logout/attempt-logout.d.mts +1 -1
- package/dist/types/commands/logout/attempt-logout.d.mts.map +1 -1
- package/dist/types/commands/manifest/bazel/bazel-socket-json-trust.d.mts +35 -0
- package/dist/types/commands/manifest/bazel/bazel-socket-json-trust.d.mts.map +1 -0
- package/dist/types/commands/manifest/bazel/cmd-manifest-bazel.d.mts.map +1 -1
- package/dist/types/commands/scan/fetch-report-data.d.mts +1 -8
- package/dist/types/commands/scan/fetch-report-data.d.mts.map +1 -1
- package/dist/types/commands/scan/generate-report.d.mts +1 -2
- package/dist/types/commands/scan/generate-report.d.mts.map +1 -1
- package/dist/types/commands/scan/output-scan-report.d.mts +0 -2
- package/dist/types/commands/scan/output-scan-report.d.mts.map +1 -1
- package/dist/types/constants.d.mts +4 -2
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/shadow/npm-base.d.mts.map +1 -1
- package/dist/types/shadow/pnpm/bin.d.mts.map +1 -1
- package/dist/types/shadow/yarn/bin.d.mts.map +1 -1
- package/dist/types/utils/api-transport.d.mts +4 -0
- package/dist/types/utils/api-transport.d.mts.map +1 -0
- package/dist/types/utils/api.d.mts +2 -1
- package/dist/types/utils/api.d.mts.map +1 -1
- package/dist/types/utils/cmd.d.mts.map +1 -1
- package/dist/types/utils/coana-release.d.mts.map +1 -1
- package/dist/types/utils/config.d.mts +1 -0
- package/dist/types/utils/config.d.mts.map +1 -1
- package/dist/types/utils/oauth.d.mts +33 -0
- package/dist/types/utils/oauth.d.mts.map +1 -0
- package/dist/types/utils/package-manager.d.mts +2 -2
- package/dist/types/utils/package-manager.d.mts.map +1 -1
- package/dist/types/utils/sdk.d.mts +14 -6
- package/dist/types/utils/sdk.d.mts.map +1 -1
- package/dist/utils.js +809 -128
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +567 -567
- package/package.json +2 -2
- package/requirements.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
6
|
|
|
7
|
+
## [1.15.0](https://github.com/SocketDev/socket-cli/releases/tag/v1.15.0) - 2026-11-12
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- `socket fix --package-managers` accepts `UV`, to include or leave out uv projects.
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Updated the Coana CLI to v `15.15.0`.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
- When `dotnet restore` fails in one .NET project, the projects it may have skipped as up to date are no longer reported as not restored.
|
|
17
|
+
- Maven Socket facts now include every dependency edge Maven resolves, as Gradle and sbt facts do, so dependency chains show each path to a package. A dependency Maven puts on the runtime classpath is no longer marked as a dev dependency because Maven kept it under a test or provided dependency.
|
|
18
|
+
- With `--ignore-unresolved`, a Maven module with unresolvable version conflicts no longer adds a partial dependency list.
|
|
19
|
+
|
|
7
20
|
## [1.14.1](https://github.com/SocketDev/socket-cli/releases/tag/v1.14.1) - 2026-11-06
|
|
8
21
|
|
|
9
22
|
### Changed
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Socket CLI
|
|
2
2
|
|
|
3
3
|
[](https://socket.dev/npm/package/socket)
|
|
4
|
-
[](https://twitter.com/SocketSecurity)
|
|
5
|
+
[](https://bsky.app/profile/socket.dev)
|
|
6
6
|
|
|
7
7
|
CLI for [Socket.dev](https://socket.dev) — scan dependencies, audit packages, apply security patches, and gate installs from your terminal or CI. This is the 1.x line of the published `socket` package on npm.
|
|
8
8
|
|
|
@@ -57,6 +57,11 @@ socket patch setup --yes
|
|
|
57
57
|
|
|
58
58
|
Free patches work without authentication. For paid patches, set `SOCKET_CLI_API_TOKEN` and `SOCKET_CLI_ORG_SLUG`.
|
|
59
59
|
|
|
60
|
+
`socket login` uses browser OAuth for read-only package, alert, and threat-feed
|
|
61
|
+
access. Open the printed authorization URL manually if a browser does not open.
|
|
62
|
+
Use `socket login --api-token` or `SOCKET_CLI_API_TOKEN` for scans and write
|
|
63
|
+
commands.
|
|
64
|
+
|
|
60
65
|
### Aliases
|
|
61
66
|
|
|
62
67
|
All aliases support the flags and arguments of the commands they alias.
|
|
@@ -104,6 +109,26 @@ Socket reachability analysis comes in three forms:
|
|
|
104
109
|
- **Precomputed reachability** (formerly Tier 2): Determines whether vulnerable code in transitive dependencies is reachable through your direct dependencies, using precomputed static analysis of dependency chains (no access to your application code required). In the CLI this is the fallback used when full application reachability cannot complete (see the `--reach-continue-on-*` flags).
|
|
105
110
|
- **Dependency reachability** (formerly Tier 3): Package-level filtering that detects which dependencies are actually used, so CVEs in unused/dead dependencies can be filtered out.
|
|
106
111
|
|
|
112
|
+
#### Network access
|
|
113
|
+
|
|
114
|
+
Full application reachability (`socket scan reach`, `socket scan create --reach`) downloads its analysis engine, the Coana CLI, on first use and installs your project's dependencies to analyze them. On a restricted network, allow:
|
|
115
|
+
|
|
116
|
+
| Host | Used for | If blocked |
|
|
117
|
+
|---|---|---|
|
|
118
|
+
| `api.socket.dev` | Socket API calls, and a signed URL for the engine download | The command fails |
|
|
119
|
+
| `storage.googleapis.com` | Downloading the engine and its analyzers (about 120 MB) | The command fails with `Failed to get the Coana CLI <version>: getaddrinfo ENOTFOUND storage.googleapis.com` |
|
|
120
|
+
| The package registry of each scanned ecosystem, for example `registry.npmjs.org` | Installing your project's dependencies for analysis | The analysis still completes, but the affected vulnerabilities are reported as `INSTALL ERROR` with no reachability result |
|
|
121
|
+
|
|
122
|
+
The engine comes from Socket, not npm, so an npm mirror or registry proxy does not cover the engine download. The registry row does not apply when your dependencies are already installed in the scanned directory, for example a `node_modules` directory from an earlier `npm ci`.
|
|
123
|
+
|
|
124
|
+
The engine is cached in `$XDG_CACHE_HOME/socket/coana` (`~/.cache/socket/coana` by default). Persist that directory between CI runs to skip the download; with a warm cache, `storage.googleapis.com` is not contacted.
|
|
125
|
+
|
|
126
|
+
**Behind an HTTP(S) proxy**, set `NODE_USE_ENV_PROXY=1` along with `HTTPS_PROXY`. The CLI does not currently route its own requests through `HTTPS_PROXY` or `SOCKET_CLI_API_PROXY`, and fails with `getaddrinfo EAI_AGAIN api.socket.dev`. `NODE_USE_ENV_PROXY=1` (Node.js 22.21 or later) makes Node.js send them through the proxy:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
HTTPS_PROXY=http://proxy.example.com:3128 NODE_USE_ENV_PROXY=1 socket scan reach .
|
|
130
|
+
```
|
|
131
|
+
|
|
107
132
|
### Flags
|
|
108
133
|
|
|
109
134
|
#### Output flags
|
|
@@ -158,7 +183,7 @@ npm exec socket
|
|
|
158
183
|
### Development environment variables
|
|
159
184
|
|
|
160
185
|
- `SOCKET_CLI_API_BASE_URL` - API base URL (default: `https://api.socket.dev/v0/`)
|
|
161
|
-
- `SOCKET_CLI_API_PROXY` - Proxy for API requests (aliases: `HTTPS_PROXY`, `https_proxy`, `HTTP_PROXY`, `http_proxy`)
|
|
186
|
+
- `SOCKET_CLI_API_PROXY` - Proxy for API requests (aliases: `HTTPS_PROXY`, `https_proxy`, `HTTP_PROXY`, `http_proxy`). Currently not applied to API requests; see [Network access](#network-access) for the `NODE_USE_ENV_PROXY=1` workaround
|
|
162
187
|
- `SOCKET_CLI_API_TIMEOUT` - API request timeout in milliseconds
|
|
163
188
|
- `SOCKET_CLI_DEBUG` - Enable debug logging
|
|
164
189
|
- `DEBUG` - Enable [`debug`](https://socket.dev/npm/package/debug) package logging
|
|
@@ -170,8 +195,8 @@ MIT
|
|
|
170
195
|
<br/>
|
|
171
196
|
<div align="center">
|
|
172
197
|
<picture>
|
|
173
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.
|
|
174
|
-
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.
|
|
175
|
-
<img width="324" height="104" alt="Socket" src="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.
|
|
198
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.15.0/assets/fleet/socket-combomark-dark.svg">
|
|
199
|
+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.15.0/assets/fleet/socket-combomark-light.svg">
|
|
200
|
+
<img width="324" height="104" alt="Socket" src="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.15.0/assets/fleet/socket-combomark-light.svg">
|
|
176
201
|
</picture>
|
|
177
202
|
</div>
|