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 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 --version
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
@@ -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: 'snyk-cli' },
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;