You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`socket cdxgen [command]` - Run [cdxgen](https://cyclonedx.github.io/cdxgen/#/?id=getting-started) for SBOM generation
32
24
33
25
## Aliases
34
26
35
27
All aliases support the flags and arguments of the commands they alias.
36
28
37
-
-`socket ci` - alias for `socket scan create --report`which creates a report for the current directory and quits with an exit code if the result is unhealthy
29
+
-`socket ci` - Alias for `socket scan create --report`(creates report and exits with error if unhealthy)
38
30
39
31
## Flags
40
32
41
33
### Output flags
42
34
43
-
-`--json` - Outputs result as JSON which can be piped into [`jq`](https://stedolan.github.io/jq/) and other tools
44
-
-`--markdown` - Outputs result as Markdown which can be copied into issues, pull requests, or chats
35
+
-`--json` - Output as JSON
36
+
-`--markdown` - Output as Markdown
45
37
46
38
### Other flags
47
39
48
-
-`--dry-run` - Run a command without uploading anything
49
-
-`--debug` - Output additional debug
50
-
-`--help` - Prints help documentation
51
-
-`--max-old-space-size` - Set Node's V8 [`--max-old-space-size`](https://nodejs.org/api/cli.html#--max-old-space-sizesize-in-mib) option
52
-
-`--max-semi-space-size` - Set Node's V8 [`--max-semi-space-size`](https://nodejs.org/api/cli.html#--max-semi-space-sizesize-in-mib) option
53
-
-`--version` - Prints the Socket CLI version
40
+
-`--dry-run` - Run without uploading
41
+
-`--debug` - Show debug output
42
+
-`--help` - Show help
43
+
-`--max-old-space-size` - Set Node.js memory limit
44
+
-`--max-semi-space-size` - Set Node.js heap size
45
+
-`--version` - Show version
54
46
55
47
## Configuration files
56
48
57
-
Socket CLI reads and uses data from a
58
-
[`socket.yml` file](https://docs.socket.dev/docs/socket-yml) in the folder you
59
-
run it in. It supports the version 2 of the `socket.yml` file format and makes
60
-
use of the `projectIgnorePaths` to excludes files when creating a report.
-`SOCKET_CLI_GIT_USER_NAME` - The git config `user.name` used by Socket CLI<br>
70
-
*Defaults:*`github-actions[bot]`<br>
71
-
-`SOCKET_CLI_GITHUB_TOKEN` - A classic or fine-grained [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) with the "repo" scope or read/write permissions set for "Contents" and "Pull Request"<br>
72
-
*Aliases:*`GITHUB_TOKEN`<br>
73
-
-`SOCKET_CLI_NO_API_TOKEN` - Make the default API token `undefined`
74
-
-`SOCKET_CLI_NPM_PATH` - The absolute location of the npm directory
75
-
-`SOCKET_CLI_ORG_SLUG` - Specify the Socket organization slug<br><br>
76
-
-`SOCKET_CLI_ACCEPT_RISKS` - Accept risks of a Socket wrapped npm/npx run
77
-
-`SOCKET_CLI_VIEW_ALL_RISKS` - View all risks of a Socket wrapped npm/npx run
54
+
-`SOCKET_CLI_API_TOKEN` - Socket API token
55
+
-`SOCKET_CLI_CONFIG` - JSON configuration object
56
+
-`SOCKET_CLI_GITHUB_API_URL` - GitHub API base URL
57
+
-`SOCKET_CLI_GIT_USER_EMAIL` - Git user email (default: `github-actions[bot]@users.noreply.github.com`)
58
+
-`SOCKET_CLI_GIT_USER_NAME` - Git user name (default: `github-actions[bot]`)
59
+
-`SOCKET_CLI_GITHUB_TOKEN` - GitHub token with repo access (alias: `GITHUB_TOKEN`)
60
+
-`SOCKET_CLI_NO_API_TOKEN` - Disable default API token
61
+
-`SOCKET_CLI_NPM_PATH` - Path to npm directory
62
+
-`SOCKET_CLI_ORG_SLUG` - Socket organization slug
63
+
-`SOCKET_CLI_ACCEPT_RISKS` - Accept npm/npx risks
64
+
-`SOCKET_CLI_VIEW_ALL_RISKS` - Show all npm/npx risks
78
65
79
66
## Contributing
80
67
81
-
### Setup
82
-
83
-
To run locally execute the following commands:
68
+
Run locally:
84
69
85
70
```
86
71
npm install
87
72
npm run build
88
73
npm exec socket
89
74
```
90
75
91
-
### Environment variables for development
76
+
### Development environment variables
92
77
93
-
-`SOCKET_CLI_API_BASE_URL` - Change the base URL for Socket API calls<br>
94
-
*Defaults:* The "apiBaseUrl" value of socket/settings local app data if present, else `https://api.socket.dev/v0/`<br>
95
-
-`SOCKET_CLI_API_PROXY` - Set the proxy Socket API requests are routed through, e.g. if set to<br>
96
-
[`http://127.0.0.1:9090`](https://docs.proxyman.io/troubleshooting/couldnt-see-any-requests-from-3rd-party-network-libraries), then all request are passed through that proxy<br>
97
-
*Aliases:*`HTTPS_PROXY`, `https_proxy`, `HTTP_PROXY`, and `http_proxy`<br>
98
-
-`SOCKET_CLI_API_TIMEOUT` - Set the timeout in milliseconds for Socket API requests
99
-
-`SOCKET_CLI_DEBUG` - Enable debug logging in Socket CLI
100
-
-`DEBUG` - Enable debug logging based on the [`debug`](https://socket.dev/npm/package/debug) package
78
+
-`SOCKET_CLI_API_BASE_URL` - API base URL (default: `https://api.socket.dev/v0/`)
79
+
-`SOCKET_CLI_API_PROXY` - Proxy for API requests (aliases: `HTTPS_PROXY`, `https_proxy`, `HTTP_PROXY`, `http_proxy`)
80
+
-`SOCKET_CLI_API_TIMEOUT` - API request timeout in milliseconds
0 commit comments