snyk 1.1131.0 → 1.1132.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.
@@ -44,6 +44,10 @@ Commands to find and manage security issues in Infrastructure as Code files.
44
44
 
45
45
  Find security issues using static code analysis.
46
46
 
47
+ ### [`snyk sbom`](sbom.md) <a href="#snyk-sbom" id="snyk-sbom"></a>
48
+
49
+ Produce an SBOM for a local software project in an ecosystem supported by Snyk.
50
+
47
51
  ### [`snyk log4shell`](log4shell.md)
48
52
 
49
53
  Find Log4Shell vulnerability.
@@ -1,10 +1,12 @@
1
- # SBOM (beta)
1
+ # SBOM
2
2
 
3
3
  ## Usage
4
4
 
5
- **Note:** In order to try out the SBOM generation feature, you must use a minimum of CLI version 1.1071.0.
5
+ **Feature availability:** This feature is available to customers on Snyk Enterprise plans.
6
6
 
7
- `snyk sbom --experimental [--file=<file>] --format=<cyclonedx1.4+json|spdx2.3+json|cyclonedx1.4+xml> [--unmanaged] [--targetDirectory=<targetDirectory>]`
7
+ **Note:** In order to run the SBOM generation feature, you must use a minimum of CLI version 1.1071.0.
8
+
9
+ `$ snyk sbom --format=<cyclonedx1.4+json|spdx2.3+json|cyclonedx1.4+xml> [--file=<file>] [--unmanaged] [--org=<ORG_ID>] [<TARGET_DIRECTORY>]`
8
10
 
9
11
  ## Description
10
12
 
@@ -15,8 +17,7 @@ The `snyk sbom` command enables you to produce an SBOM for a local software proj
15
17
  Possible exit codes and their meaning:
16
18
 
17
19
  **0**: success (process completed), SBOM created successfully\
18
- **2**: failure, try to re-run command\
19
- **3**: failure, no supported projects detected
20
+ **2**: failure, try to re-run command
20
21
 
21
22
  ## Debug
22
23
 
@@ -24,44 +25,48 @@ Use the `-d` option to output the debug logs.
24
25
 
25
26
  ## Options
26
27
 
27
- ### `--experimental`
28
+ ### `--format=<cyclonedx1.4+json|cyclonedx1.4+xml|spdx2.3+json>`
28
29
 
29
- Specify while the `snyk sbom` command is in beta.
30
+ Specify the output format for the SBOM to be produced.
31
+
32
+ The supported formats are CycloneDX 1.4 JSON or XML and SPDX 2.3 JSON.
30
33
 
31
34
  ### `[--file=<file>]`
32
35
 
33
36
  Optional. Select the package manager manifest file to use as the basis for the SBOM to be produced.
34
37
 
35
- ### `--format=<cyclonedx1.4+json|spdx2.3+json|cyclonedx1.4+xml>`
38
+ ### `[--unmanaged]`
36
39
 
37
- Specify the output format for the SBOM to be produced.
40
+ Optional. Instruct the CLI to build an SBOM based on the unmanaged C/C++ source libraries that are locally available.
38
41
 
39
- The supported formats are CycloneDX 1.4 JSON or XML and SPDX 2.3 JSON.
42
+ ### `[--org=<ORG_ID>]`
40
43
 
41
- ### `[--unmanaged]`
44
+ Optional. Specify the `<ORG_ID>` to run Snyk commands tied to a specific organization. The `<ORG_ID>` influences some features availability and private test limits.
42
45
 
43
- Optional. Instruct the CLI to build an SBOM based on the unmanaged C/C++ source libraries that are locally available.
46
+ If you have multiple organizations, you can set a default from the CLI using:
44
47
 
45
- ### `[--targetDirectory=<targetDirectory]`
48
+ `$ snyk config set org=<ORG_ID>`
46
49
 
47
- Optional. Instruct the CLI to autodetect the package manager manifest file to use within the specified directory.
50
+ Set a default to ensure all newly tested projects are tested under your default organization. If you need to override the default, use the `--org=<ORG_ID>` option.
48
51
 
49
- **Note:** Support for the `--all-projects` option is planned for later versions.
52
+ Default: `<ORG_ID>` that is the current preferred organization in your [Account settings](https://app.snyk.io/account)
50
53
 
51
- ## Examples for the snyk sbom command
54
+ **Note:** You can also use `--org=<orgslugname>.` The `ORG_ID` works in both the CLI and the API. The organization slug name works in the CLI, but not in the API.
52
55
 
53
- Generate an SBOM and display it in the local console.
56
+ For more information see the article [How to select the organization to use in the CLI](https://support.snyk.io/hc/en-us/articles/360000920738-How-to-select-the-organization-to-use-in-the-CLI)
54
57
 
55
- `snyk sbom --format=cyclonedx1.4+json`
58
+ ### `[<TARGET_DIRECTORY>]`
56
59
 
57
- Generate an SBOM and write it to a local file.
60
+ Optional. Instruct the CLI to autodetect a package manager manifest file to use within the specified directory. If `--file` is set, this option will be ignored.
58
61
 
59
- `snyk sbom --format=cyclonedx1.4+json > mySBOM.json`
62
+ **Note:** Support for the `--all-projects` option is planned for later versions.
60
63
 
61
- ## Share your feedback
64
+ ## Examples for the snyk sbom command
65
+
66
+ Generate an SBOM and display it in the local console.
62
67
 
63
- The `snyk sbom` command is offered in beta in order to gather feedback, so your comments are welcome.
68
+ `$ snyk sbom --format=cyclonedx1.4+json`
64
69
 
65
- Snyk wants to hear what works or does not work with the current options, and what else you would like to see in the future in this area.
70
+ Generate an SBOM and write it to a local file.
66
71
 
67
- If you have a shared Slack channel with Snyk, an account team, or contact with the product team, you are welcome to provide feedback directly. Otherwise you may submit feedback through a request to [Snyk Support](https://support.snyk.io/hc/en-us/requests/new)
72
+ `$ snyk sbom --format=cyclonedx1.4+json > mySBOM.json`
@@ -155,7 +155,7 @@ Specify a custom Snyk project name.
155
155
 
156
156
  ### `--target-reference=<TARGET_REFERENCE>`
157
157
 
158
- Specify a reference which differentiates this project, for example, a branch name or version. Projects having the same reference can be grouped based on that reference. Supported for Snyk Open Source.
158
+ Specify a reference which differentiates this project, for example, a branch name or version. Projects having the same reference can be grouped based on that reference. Supported for Snyk Open Source except for use with `--unmanaged`.
159
159
 
160
160
  For more information see [Separating projects by branch or version](https://docs.snyk.io/snyk-cli/secure-your-projects-in-the-long-term/grouping-projects-by-branch-or-version)
161
161
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snyk",
3
- "version": "1.1131.0",
3
+ "version": "1.1132.0",
4
4
  "description": "snyk library and cli utility",
5
5
  "files": [
6
6
  "*"
@@ -1,10 +1,10 @@
1
- 004a93ed9366b1bdce5a680dd2cb220f9d00f4e79db81020c52f4defdd01a5ab docker-mac-signed-bundle.tar.gz
2
- c363cc6e96ec63ecc1961a53e0cf783d1d8457cfc4b15e1269cb8628104afc78 snyk-alpine
3
- c297a4771ab24fed617924203d18caf92b241a38a5502a28fa165f78303fbbd1 snyk-fix.tgz
4
- cc37459570a21db876a9d7fc3e64c78aa2e4712590213625904755a5bfb52015 snyk-for-docker-desktop-darwin-arm64.tar.gz
5
- 07e5763e8a331d5c45bed206789d308d0a09557dfa70c594aeae4c5d673a11b9 snyk-for-docker-desktop-darwin-x64.tar.gz
6
- 028b0782097c9d32b22179df15b3399cd456810e7dc3397cdcaa0f2a0726c58f snyk-linux-arm64
7
- 2dfda2b9cab47efe4f6e135c9a60f14ad1c4ac4cccc0b0f17b440791edf4ac87 snyk-linux
8
- b6bda92cc2425019ffe59709139ca8357c3d259e39d83d829c335ec3235159a5 snyk-macos
9
- ad50f1551866b928381d7e972e5abaa8f373856d4b28111c71806e141254e999 snyk-protect.tgz
10
- f38b506b51c9a5bb74a165843481af4cf260581219722806988e0c8748220474 snyk-win.exe
1
+ 91f24cc80119b4f84dcc105fdb38a5c745f2e8697ae6b71f2543a881a2210289 docker-mac-signed-bundle.tar.gz
2
+ a59a6015e0ee46e75dbfa8fc8946b516ba2b1dba498522231657eec0407b09ec snyk-alpine
3
+ 195ff83cc9531abc632ac3eef3004f539f87ec01cf6ad6c51ea52ee6e04757d6 snyk-fix.tgz
4
+ 18806310d1b0a1069d38e25e25f9914af006d712c2aa91203187791163585570 snyk-for-docker-desktop-darwin-arm64.tar.gz
5
+ f1be7b5467d900f5b1ea947b24ccf72addbe0fcbd24bc5e6a2ead7d95026cefb snyk-for-docker-desktop-darwin-x64.tar.gz
6
+ 7c434d04c0f119c7a26f424518d06a678892a39af9253c4ce1d3d562e33e1ce5 snyk-linux-arm64
7
+ 16ecdb4b17a128a034f5e9b02e5a8832a75f59c56f89ee48429cdead81670a4c snyk-linux
8
+ d0ad451c8bfae898d612407d6482265aadbd6921d5e399499909c3aca590a274 snyk-macos
9
+ bff6bc551c50a88463fb7db8133217a60cf4679341b72f792b733d26b16a7441 snyk-protect.tgz
10
+ 87739c3ea74f34cc70b931744ba0bfb347d58924615ba849309f6492cbecf6fa snyk-win.exe
@@ -1 +1 @@
1
- 1.1131.0
1
+ 1.1132.0
@@ -1,10 +1,10 @@
1
- 004a93ed9366b1bdce5a680dd2cb220f9d00f4e79db81020c52f4defdd01a5ab docker-mac-signed-bundle.tar.gz
2
- c363cc6e96ec63ecc1961a53e0cf783d1d8457cfc4b15e1269cb8628104afc78 snyk-alpine
3
- c297a4771ab24fed617924203d18caf92b241a38a5502a28fa165f78303fbbd1 snyk-fix.tgz
4
- cc37459570a21db876a9d7fc3e64c78aa2e4712590213625904755a5bfb52015 snyk-for-docker-desktop-darwin-arm64.tar.gz
5
- 07e5763e8a331d5c45bed206789d308d0a09557dfa70c594aeae4c5d673a11b9 snyk-for-docker-desktop-darwin-x64.tar.gz
6
- 028b0782097c9d32b22179df15b3399cd456810e7dc3397cdcaa0f2a0726c58f snyk-linux-arm64
7
- 2dfda2b9cab47efe4f6e135c9a60f14ad1c4ac4cccc0b0f17b440791edf4ac87 snyk-linux
8
- b6bda92cc2425019ffe59709139ca8357c3d259e39d83d829c335ec3235159a5 snyk-macos
9
- ad50f1551866b928381d7e972e5abaa8f373856d4b28111c71806e141254e999 snyk-protect.tgz
10
- f38b506b51c9a5bb74a165843481af4cf260581219722806988e0c8748220474 snyk-win.exe
1
+ 91f24cc80119b4f84dcc105fdb38a5c745f2e8697ae6b71f2543a881a2210289 docker-mac-signed-bundle.tar.gz
2
+ a59a6015e0ee46e75dbfa8fc8946b516ba2b1dba498522231657eec0407b09ec snyk-alpine
3
+ 195ff83cc9531abc632ac3eef3004f539f87ec01cf6ad6c51ea52ee6e04757d6 snyk-fix.tgz
4
+ 18806310d1b0a1069d38e25e25f9914af006d712c2aa91203187791163585570 snyk-for-docker-desktop-darwin-arm64.tar.gz
5
+ f1be7b5467d900f5b1ea947b24ccf72addbe0fcbd24bc5e6a2ead7d95026cefb snyk-for-docker-desktop-darwin-x64.tar.gz
6
+ 7c434d04c0f119c7a26f424518d06a678892a39af9253c4ce1d3d562e33e1ce5 snyk-linux-arm64
7
+ 16ecdb4b17a128a034f5e9b02e5a8832a75f59c56f89ee48429cdead81670a4c snyk-linux
8
+ d0ad451c8bfae898d612407d6482265aadbd6921d5e399499909c3aca590a274 snyk-macos
9
+ bff6bc551c50a88463fb7db8133217a60cf4679341b72f792b733d26b16a7441 snyk-protect.tgz
10
+ 87739c3ea74f34cc70b931744ba0bfb347d58924615ba849309f6492cbecf6fa snyk-win.exe
@@ -1 +1 @@
1
- 1.1131.0
1
+ 1.1132.0