@socketsecurity/cli 1.1.154 → 1.1.155
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 +14 -1
- package/README.md +28 -23
- package/dist/cli.js +4135 -3974
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/constants.js.map +1 -1
- package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
- package/dist/shadow-npm-bin2.js +27 -2
- package/dist/shadow-npm-bin2.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/ci/handle-ci.d.mts +7 -0
- package/dist/types/commands/ci/handle-ci.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-dynamic-sbom-inference.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-setup.d.mts.map +1 -1
- package/dist/types/commands/manifest/discover-manifest-roots.d.mts +2 -1
- package/dist/types/commands/manifest/discover-manifest-roots.d.mts.map +1 -1
- package/dist/types/commands/manifest/generate-recursive-manifests.d.mts +24 -6
- package/dist/types/commands/manifest/generate-recursive-manifests.d.mts.map +1 -1
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +1 -1
- package/dist/types/commands/manifest/handle-manifest-dynamic-sbom-inference.d.mts.map +1 -1
- package/dist/types/commands/manifest/run-manifest-facts.d.mts.map +1 -1
- package/dist/types/commands/manifest/scripts/sidecar.d.mts +47 -21
- package/dist/types/commands/manifest/scripts/sidecar.d.mts.map +1 -1
- package/dist/types/commands/manifest/setup-recursive-manifest-config.d.mts +8 -6
- package/dist/types/commands/manifest/setup-recursive-manifest-config.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +1 -1
- package/dist/types/commands/scan/reachability-flags.d.mts.map +1 -1
- package/dist/types/shadow/npm-base.d.mts +18 -0
- package/dist/types/shadow/npm-base.d.mts.map +1 -1
- package/dist/types/utils/fs.d.mts +4 -0
- package/dist/types/utils/fs.d.mts.map +1 -1
- package/dist/types/utils/git.d.mts +6 -0
- package/dist/types/utils/git.d.mts.map +1 -1
- package/dist/types/utils/github-errors.d.mts +2 -1
- package/dist/types/utils/github-errors.d.mts.map +1 -1
- package/dist/types/utils/glob.d.mts.map +1 -1
- package/dist/types/utils/npm-paths.d.mts +17 -0
- package/dist/types/utils/npm-paths.d.mts.map +1 -1
- package/dist/utils.js +348 -120
- package/dist/utils.js.map +1 -1
- package/package.json +16 -12
- package/logo-dark.png +0 -0
- package/logo-light.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,24 @@ 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.1.
|
|
7
|
+
## [1.1.155](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.155) - 2026-08-07
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- `socket scan create --reach --dynamic-sbom-inference` splits full application reachability analysis per project/module for Gradle, sbt, and Maven monorepos, using a Socket facts SBOM generated directly by each package manager for every build root, instead of one synthetic root.
|
|
11
|
+
- `socket manifest setup --dynamic-sbom-inference` extends the interactive `socket.json` configurator to walk every independent Gradle, sbt, and Maven build root in your project.
|
|
12
|
+
- `socket manifest dynamic-sbom-inference`: generate a Socket facts SBOM for every independent Gradle, sbt, and Maven build root directly, without creating a scan.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- Updated the Coana CLI to v `15.10.8`.
|
|
8
16
|
|
|
9
17
|
### Fixed
|
|
10
18
|
- Declared `form-data` as a dependency, so a fresh install no longer throws `Cannot find module 'form-data'` on its first upload.
|
|
11
19
|
|
|
20
|
+
## [1.1.154](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.154) - 2026-08-06
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- Updated the Coana CLI to v `15.10.4`.
|
|
24
|
+
|
|
12
25
|
## [1.1.153](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.153) - 2026-08-04
|
|
13
26
|
|
|
14
27
|
### Changed
|
package/README.md
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
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)
|
|
5
6
|
|
|
6
|
-
CLI for [Socket.dev] security
|
|
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.
|
|
7
8
|
|
|
8
|
-
##
|
|
9
|
+
## Install
|
|
9
10
|
|
|
10
11
|
```bash
|
|
11
12
|
npm install -g socket
|
|
12
13
|
socket --help
|
|
13
14
|
```
|
|
14
15
|
|
|
15
|
-
##
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
### Commands
|
|
16
19
|
|
|
17
20
|
- `socket npm [args...]` and `socket npx [args...]` - Wraps npm/npx with Socket security scanning
|
|
18
21
|
|
|
@@ -24,7 +27,7 @@ socket --help
|
|
|
24
27
|
|
|
25
28
|
- `socket patch <command>` - Apply, manage, and rollback Socket security patches for vulnerable dependencies
|
|
26
29
|
|
|
27
|
-
|
|
30
|
+
#### Patch subcommands
|
|
28
31
|
|
|
29
32
|
| Command | Description |
|
|
30
33
|
|---------|-------------|
|
|
@@ -54,13 +57,13 @@ socket patch setup --yes
|
|
|
54
57
|
|
|
55
58
|
Free patches work without authentication. For paid patches, set `SOCKET_CLI_API_TOKEN` and `SOCKET_CLI_ORG_SLUG`.
|
|
56
59
|
|
|
57
|
-
|
|
60
|
+
### Aliases
|
|
58
61
|
|
|
59
62
|
All aliases support the flags and arguments of the commands they alias.
|
|
60
63
|
|
|
61
64
|
- `socket ci` - Alias for `socket scan create --report` (creates report and exits with error if unhealthy)
|
|
62
65
|
|
|
63
|
-
|
|
66
|
+
### Reachability analysis
|
|
64
67
|
|
|
65
68
|
Socket reachability analysis comes in three forms:
|
|
66
69
|
|
|
@@ -68,14 +71,14 @@ Socket reachability analysis comes in three forms:
|
|
|
68
71
|
- **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).
|
|
69
72
|
- **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.
|
|
70
73
|
|
|
71
|
-
|
|
74
|
+
### Flags
|
|
72
75
|
|
|
73
|
-
|
|
76
|
+
#### Output flags
|
|
74
77
|
|
|
75
78
|
- `--json` - Output as JSON
|
|
76
79
|
- `--markdown` - Output as Markdown
|
|
77
80
|
|
|
78
|
-
|
|
81
|
+
#### Other flags
|
|
79
82
|
|
|
80
83
|
- `--dry-run` - Run without uploading
|
|
81
84
|
- `--debug` - Show debug output
|
|
@@ -84,12 +87,12 @@ Socket reachability analysis comes in three forms:
|
|
|
84
87
|
- `--max-semi-space-size` - Set Node.js heap size
|
|
85
88
|
- `--version` - Show version
|
|
86
89
|
|
|
87
|
-
|
|
90
|
+
### Configuration files
|
|
88
91
|
|
|
89
92
|
Socket CLI reads [`socket.yml`](https://docs.socket.dev/docs/socket-yml) configuration files.
|
|
90
93
|
Supports version 2 format with `projectIgnorePaths` for excluding files from reports.
|
|
91
94
|
|
|
92
|
-
|
|
95
|
+
### Environment variables
|
|
93
96
|
|
|
94
97
|
- `SOCKET_CLI_API_TOKEN` - Socket API token
|
|
95
98
|
- `SOCKET_CLI_CONFIG` - JSON configuration object
|
|
@@ -103,11 +106,17 @@ Supports version 2 format with `projectIgnorePaths` for excluding files from rep
|
|
|
103
106
|
- `SOCKET_CLI_ACCEPT_RISKS` - Accept npm/npx risks
|
|
104
107
|
- `SOCKET_CLI_VIEW_ALL_RISKS` - Show all npm/npx risks
|
|
105
108
|
|
|
106
|
-
|
|
109
|
+
### See also
|
|
110
|
+
|
|
111
|
+
- [Socket API Reference](https://docs.socket.dev/reference)
|
|
112
|
+
- [Socket GitHub App](https://github.com/apps/socket-security)
|
|
113
|
+
- [`@socketsecurity/sdk`](https://github.com/SocketDev/socket-sdk-js)
|
|
114
|
+
|
|
115
|
+
## Development
|
|
107
116
|
|
|
108
117
|
Run locally:
|
|
109
118
|
|
|
110
|
-
```
|
|
119
|
+
```bash
|
|
111
120
|
npm install
|
|
112
121
|
npm run build
|
|
113
122
|
npm exec socket
|
|
@@ -122,19 +131,15 @@ npm exec socket
|
|
|
122
131
|
- `SOCKET_CLI_DEBUG` - Enable debug logging
|
|
123
132
|
- `DEBUG` - Enable [`debug`](https://socket.dev/npm/package/debug) package logging
|
|
124
133
|
|
|
125
|
-
##
|
|
126
|
-
|
|
127
|
-
- [Socket API Reference](https://docs.socket.dev/reference)
|
|
128
|
-
- [Socket GitHub App](https://github.com/apps/socket-security)
|
|
129
|
-
- [`@socketsecurity/sdk`](https://github.com/SocketDev/socket-sdk-js)
|
|
134
|
+
## License
|
|
130
135
|
|
|
131
|
-
|
|
136
|
+
MIT
|
|
132
137
|
|
|
133
138
|
<br/>
|
|
134
139
|
<div align="center">
|
|
135
140
|
<picture>
|
|
136
|
-
<source media="(prefers-color-scheme: dark)" srcset="
|
|
137
|
-
<source media="(prefers-color-scheme: light)" srcset="
|
|
138
|
-
<img width="324" height="
|
|
141
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.155/assets/fleet/socket-combomark-dark.svg">
|
|
142
|
+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.155/assets/fleet/socket-combomark-light.svg">
|
|
143
|
+
<img width="324" height="104" alt="Socket" src="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.155/assets/fleet/socket-combomark-light.svg">
|
|
139
144
|
</picture>
|
|
140
145
|
</div>
|