snyk 1.804.0 → 1.808.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/README.md +5 -3
- package/dist/cli/293.index.js +8 -1
- package/dist/cli/293.index.js.map +1 -1
- package/dist/cli/727.index.js +12 -16
- package/dist/cli/727.index.js.map +1 -1
- package/dist/cli/85.index.js +6 -2
- package/dist/cli/85.index.js.map +1 -1
- package/dist/cli/917.index.js +30 -26
- package/dist/cli/917.index.js.map +1 -1
- package/dist/cli/989.index.js +389 -255
- package/dist/cli/989.index.js.map +1 -1
- package/dist/cli/commands/log4shell-hashes.d.ts +12 -1
- package/dist/cli/commands/test/iac-local-execution/file-loader.d.ts +1 -1
- package/dist/cli/thirdPartyNotice.json +2 -2
- package/help/README.md +1 -1
- package/help/cli-commands/{snyk.md → README.md} +15 -11
- package/help/cli-commands/{snyk-auth.md → auth.md} +0 -0
- package/help/cli-commands/{snyk-code.md → code.md} +0 -0
- package/help/cli-commands/{snyk-config.md → config.md} +0 -0
- package/help/cli-commands/{snyk-container.md → container.md} +0 -0
- package/help/cli-commands/{snyk-iac.md → iac.md} +0 -0
- package/help/cli-commands/{snyk-ignore.md → ignore.md} +0 -0
- package/help/cli-commands/{snyk-log4shell.md → log4shell.md} +1 -1
- package/help/cli-commands/{snyk-monitor.md → monitor.md} +0 -0
- package/help/cli-commands/{snyk-policy.md → policy.md} +0 -0
- package/help/cli-commands/{snyk-protect.md → protect.md} +0 -0
- package/help/cli-commands/{snyk-test.md → test.md} +0 -0
- package/help/cli-commands/{snyk-wizard.md → wizard.md} +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -160,12 +160,14 @@ Snyk also offers many integrations into developer tooling. These integrations wi
|
|
|
160
160
|
|
|
161
161
|
# Getting started with Snyk CLI
|
|
162
162
|
|
|
163
|
-
Once you installed the Snyk CLI, you can verify it's working by running
|
|
163
|
+
Once you installed the Snyk CLI, you can verify it's working by running:
|
|
164
164
|
|
|
165
165
|
```bash
|
|
166
|
-
snyk --
|
|
166
|
+
snyk --help
|
|
167
167
|
```
|
|
168
168
|
|
|
169
|
+
See the [full Snyk CLI help](./help/cli-commands).
|
|
170
|
+
|
|
169
171
|
## Authorization
|
|
170
172
|
|
|
171
173
|
Snyk CLI depends on [Snyk.io](https://snyk.io) APIs. Connect your Snyk CLI with [Snyk.io](https://snyk.io) by running:
|
|
@@ -246,7 +248,7 @@ Here are some flags that you might find useful:
|
|
|
246
248
|
|
|
247
249
|
Auto-detect all projects in working directory
|
|
248
250
|
|
|
249
|
-
See all the available commands and options by running `--help`:
|
|
251
|
+
[See all the available commands and options](./help/cli-commands) by running `--help`:
|
|
250
252
|
|
|
251
253
|
```bash
|
|
252
254
|
snyk --help
|
package/dist/cli/293.index.js
CHANGED
|
@@ -4700,6 +4700,7 @@ async function getCodeAnalysis(root, options, sastSettings) {
|
|
|
4700
4700
|
if (isLocalCodeEngineEnabled) {
|
|
4701
4701
|
validateLocalCodeEngineUrl(sastSettings.localCodeEngine.url);
|
|
4702
4702
|
}
|
|
4703
|
+
const source = 'snyk-cli';
|
|
4703
4704
|
const baseURL = isLocalCodeEngineEnabled
|
|
4704
4705
|
? sastSettings.localCodeEngine.url
|
|
4705
4706
|
: config_1.default.CODE_CLIENT_PROXY_URL;
|
|
@@ -4725,9 +4726,15 @@ async function getCodeAnalysis(root, options, sastSettings) {
|
|
|
4725
4726
|
? severityToAnalysisSeverity(options.severityThreshold)
|
|
4726
4727
|
: code_client_1.AnalysisSeverity.info;
|
|
4727
4728
|
const result = await code_client_1.analyzeFolders({
|
|
4728
|
-
connection: { baseURL, sessionToken, source
|
|
4729
|
+
connection: { baseURL, sessionToken, source },
|
|
4729
4730
|
analysisOptions: { severity },
|
|
4730
4731
|
fileOptions: { paths: [root] },
|
|
4732
|
+
analysisContext: {
|
|
4733
|
+
initiator: 'CLI',
|
|
4734
|
+
flow: source,
|
|
4735
|
+
orgDisplayName: config_1.default.org,
|
|
4736
|
+
projectName: config_1.default.PROJECT_NAME,
|
|
4737
|
+
},
|
|
4731
4738
|
});
|
|
4732
4739
|
if ((result === null || result === void 0 ? void 0 : result.analysisResults.type) === 'sarif') {
|
|
4733
4740
|
return result.analysisResults.sarif;
|