snyk 1.1306.3 → 1.1306.4

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.
@@ -1338,19 +1338,19 @@
1338
1338
  },
1339
1339
  {
1340
1340
  "name": "js-yaml",
1341
- "version": "4.3.0",
1341
+ "version": "4.3.1",
1342
1342
  "author": "Vladimir Zapparov <dervus.grim@gmail.com>",
1343
1343
  "repository": null,
1344
- "source": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz",
1344
+ "source": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.1.tgz",
1345
1345
  "license": "MIT",
1346
1346
  "licenseText": "(The MIT License)\n\nCopyright (C) 2011-2015 by Vitaly Puzrin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
1347
1347
  },
1348
1348
  {
1349
1349
  "name": "js-yaml",
1350
- "version": "3.15.0",
1350
+ "version": "3.15.1",
1351
1351
  "author": "Vladimir Zapparov <dervus.grim@gmail.com>",
1352
1352
  "repository": null,
1353
- "source": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.0.tgz",
1353
+ "source": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.1.tgz",
1354
1354
  "license": "MIT",
1355
1355
  "licenseText": "(The MIT License)\n\nCopyright (C) 2011-2015 by Vitaly Puzrin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
1356
1356
  },
@@ -44,6 +44,10 @@ These commands find and report security issues in Infrastructure as Code files;
44
44
 
45
45
  The `snyk code test` command finds security issues using Static Code Analysis.
46
46
 
47
+ ### [`snyk secrets`](secrets-test.md)
48
+
49
+ The `snyk secrets test` command scans text files in a repository for hardcoded secrets.
50
+
47
51
  ### [`snyk sbom`](sbom.md)
48
52
 
49
53
  Generate or test an SBOM document in ecosystems supported by Snyk.
@@ -0,0 +1,83 @@
1
+ ---
2
+ description: The snyk ignore create command that creates a Snyk Code ignore
3
+ hidden: true
4
+ noIndex: true
5
+ ---
6
+
7
+ # Ignore create
8
+
9
+ ## Usage and description
10
+
11
+ `snyk ignore create --finding-id=<FINDING_ID> --ignore-type=<not-vulnerable|wont-fix|temporary-ignore> --reason=<REASON> --expiration=<YYYY-MM-DD|never> [--org=<ORG_ID>] [--remote-repo-url=<URL>] [OPTIONS]`
12
+
13
+ The `snyk ignore create` command creates an ignore for a Snyk Code finding using Consistent Ignores for Snyk Code. Snyk stores the ignore on the finding and applies it consistently across the CLI, IDE, and other integrations on the next test.
14
+
15
+ **Note:** This command applies only to Snyk Code. To ignore Snyk Open Source or Snyk IaC issues, use the [`snyk ignore`](ignore.md) command without the `create` subcommand.
16
+
17
+ Creating ignores from the command line is an Early Access feature of the Ignore Approval Workflow. It applies to `snyk code test` runs from the CLI and IDE. It does not apply to SCM (stateful) tests run through the Import API, and it does not support CLI Upload projects.
18
+
19
+ ## Prerequisites
20
+
21
+ Complete the following before you create an ignore:
22
+
23
+ - Install Snyk CLI v1.1297.1 or later. Visit [Install or update the Snyk CLI](https://docs.snyk.io/developer-tools/snyk-cli/install-the-snyk-cli).
24
+ - Enable Consistent Ignores for Snyk Code for your Group or Organization. Visit [Consistent Ignores for Snyk Code](https://docs.snyk.io/scan-fix-and-prevent/fix/prioritize-issues-for-fixing/ignore-issues/consistent-ignores-for-snyk-code).
25
+ - Set the Organization that holds the ignores. Visit [How to select the Organization to use in the CLI](https://docs.snyk.io/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/how-to-select-the-organization-to-use-in-the-cli).
26
+ - Commit and push your code to the remote repository so that reviewers can locate the finding.
27
+
28
+ This command identifies a finding by its finding identifier. To obtain it, run `snyk code test --json` and locate `runs.results[n].fingerprints.snyk/assets/finding/v1` in the output. Visit [Consistent Ignores for Snyk Code CLI](https://docs.snyk.io/scan-fix-and-prevent/fix/prioritize-issues-for-fixing/ignore-issues/consistent-ignores-for-snyk-code/snyk-cli#access-the-finding-identifier-in-json-and-sarif-output).
29
+
30
+ ## Interactive and non-interactive modes
31
+
32
+ By default, `snyk ignore create` runs interactively and prompts for each value. Run the command without options to use interactive mode.
33
+
34
+ To run non-interactively, for example in a script or CI/CD pipeline, provide all required options.
35
+
36
+ ## Options
37
+
38
+ ### `--finding-id=<FINDING_ID>`
39
+
40
+ Finding to ignore. Required.
41
+
42
+ Obtain the finding identifier from the JSON output of `snyk code test --json`.
43
+
44
+ ### `--ignore-type=<not-vulnerable|wont-fix|temporary-ignore>`
45
+
46
+ Reason category for the ignore. Required.
47
+
48
+ ### `--reason=<REASON>`
49
+
50
+ Human-readable justification for the ignore. Required and must not be empty.
51
+
52
+ ### `--expiration=<YYYY-MM-DD|never>`
53
+
54
+ Expiration date in `YYYY-MM-DD` format, or `never`. Required in non-interactive mode.
55
+
56
+ ### `--org=<ORG_ID>`
57
+
58
+ Organization that holds the ignore. The value must be a valid Organization ID.
59
+
60
+ Default: the Organization set in your CLI configuration
61
+
62
+ ### `--remote-repo-url=<URL>`
63
+
64
+ Repository URL for the finding. Snyk detects this automatically when a .git directory is present. Specify it explicitly when the repository has a different Git URL. To verify the URL, run `git remote -v`.
65
+
66
+ ## Examples for the `snyk ignore create` command
67
+
68
+ ### Create an ignore interactively
69
+
70
+ ```
71
+ $ snyk ignore create
72
+ ```
73
+
74
+ ### Create an ignore non-interactively
75
+
76
+ ```
77
+ $ snyk ignore create \
78
+ --finding-id=<FINDING_ID> \
79
+ --ignore-type=wont-fix \
80
+ --reason="Not exploitable in this context" \
81
+ --expiration=2026-12-31 \
82
+ --org=<ORG_ID>
83
+ ```
@@ -8,7 +8,7 @@
8
8
 
9
9
  The `snyk ignore` command modifies the `.snyk` policy file to ignore a specified issue according to its Snyk ID for all occurrences, its expiry date, a reason, or according to paths in the filesystem for the policy, the issue, or both.
10
10
 
11
- **Note:** Ignoring issues or vulnerabilities using the `.snyk` file is not supported for Snyk Code.
11
+ **Note:** Ignoring issues or vulnerabilities using the `.snyk` file is not supported for Snyk Code. To ignore a Snyk Code finding from the command line, use the [`snyk ignore create`](ignore-create.md) command with Consistent Ignores for Snyk Code.
12
12
 
13
13
  ### Exclude
14
14
 
@@ -0,0 +1,95 @@
1
+ # Secrets test
2
+
3
+ ## Prerequisites
4
+
5
+ To use the `snyk secrets test` command:
6
+
7
+ - Install the latest version of the [Snyk CLI](../install-the-snyk-cli/)
8
+ - [Authenticate](auth.md) your machine with the Snyk CLI using `snyk auth`.
9
+ - Ensure the Secrets feature is enabled for your Organization. If you receive a `SNYK-CLI-0016` error, contact your Snyk account manager.
10
+
11
+ ## Usage
12
+
13
+ `snyk secrets test [PATH]`
14
+
15
+ ## Description
16
+
17
+ Scan your source code to identify and manage sensitive information such as API keys, passwords, and tokens. This command finds hardcoded secrets in your current directory or a specified path. The command always scans the targeted directory recursively.
18
+
19
+ ## Exit codes
20
+
21
+ **0**: Success. No secrets found, or all found secrets are ignored.\
22
+ **1**: Action needed. Secrets found require attention.\
23
+ **2**: Failure. An error occurred.
24
+
25
+ ## Debug
26
+
27
+ Use the `-d` option to output the debug logs.
28
+
29
+ ## Options
30
+
31
+ ### `--exclude=<NAME>[,<NAME>]...`
32
+
33
+ Exclude directory names and file names from the scan. Provide a comma-separated list of names. Do not include a path. Example: `snyk secrets test --exclude=dir1,file2` This excludes any directories and files named `dir1` and `file2` from the secrets scan, such as `./dir1`, `./src/dir1`, `./file2`, and `./src/file2`.
34
+
35
+ ### `--org=<ORG_ID>`
36
+
37
+ Specify the Snyk Organization to associate the test results with. Example: `snyk secrets test --org=<ORG_ID>`
38
+
39
+ ### `--include-ignores`
40
+
41
+ Include ignored findings in the scan results. Use this option to audit your codebase and review suppressed items. Example: `snyk secrets test --include-ignores`
42
+
43
+ ### `--severity-threshold=<low|medium|high|critical>`
44
+
45
+ Report only vulnerabilities at the specified level or higher. Allowed values: `low`, `medium`, `high`, `critical`.
46
+
47
+ ### `--report`
48
+
49
+ Share results with the Snyk Web UI. This creates a project in your Snyk account with a snapshot of the current issues or appends the snapshot to an existing project. After using this option, log in to the Snyk website and view your projects to see the snapshot. When you use `--report`, enable the **View Project Ignores** permission for the service account or user token. Snyk requires this permission to access ignore information when you report results. If Snyk returns a `403 Forbidden` error, ensure your service account role includes this permission. Example: `snyk secrets test --report`
50
+
51
+ ### `--target-name=<TARGET_NAME>`
52
+
53
+ Use this option in combination with the `--report` option. Set or override the target name for the project.
54
+
55
+ ### `--target-reference=<TARGET_REFERENCE>`
56
+
57
+ Use this option in combination with the `--report` option. Specify a reference that differentiates this project, for example, a branch name or version. Projects with the same reference can be grouped based on that reference. Example of setting to the current Git branch:
58
+
59
+ `snyk secrets test --report --target-reference="$(git branch --show-current)"`
60
+
61
+ Example of setting to the latest Git tag:
62
+
63
+ `snyk secrets test --report --target-reference="$(git describe --tags --abbrev=0)"`
64
+
65
+ ### `--project-environment=<ENVIRONMENT>[,<ENVIRONMENT>]...`
66
+
67
+ Set the project environment project attribute to one or more comma-separated values. To clear the project environment, set `--project-environment=`. Allowed values: `frontend`, `backend`, `internal`, `external`, `mobile`, `saas`, `onprem`, `hosted`, `distributed`. For more information, see [Project attributes](https://app.gitbook.com/s/BJO0IZx7zB6bOkotxQP2/scan-with-snyk/snyk-projects/project-attributes)
68
+
69
+ ### `--project-lifecycle=<LIFECYCLE>[,<LIFECYCLE>]...`
70
+
71
+ Set the project lifecycle project attribute to one or more comma-separated values. To clear the project lifecycle, set `--project-lifecycle=`. Allowed values: `production`, `development`, `sandbox`. For more information, see [Project attributes](https://app.gitbook.com/s/BJO0IZx7zB6bOkotxQP2/scan-with-snyk/snyk-projects/project-attributes)
72
+
73
+ ### `--project-business-criticality=<BUSINESS_CRITICALITY>[,<BUSINESS_CRITICALITY>]...`
74
+
75
+ Set the project business criticality project attribute to one or more comma-separated values. To clear the project business criticality, set `--project-business-criticality=`. Allowed values: `critical`, `high`, `medium`, `low`. For more information, see [Project attributes](https://app.gitbook.com/s/BJO0IZx7zB6bOkotxQP2/scan-with-snyk/snyk-projects/project-attributes)
76
+
77
+ ### `--project-tags=<TAG>[,<TAG>]...`
78
+
79
+ Set the project tags to one or more comma-separated key-value pairs with an `=` separator. Example: `snyk secrets test --project-tags=department=finance,team=alpha` To clear the project tags, set `--project-tags=`. For more information, including allowable characters, see [Project tags](https://app.gitbook.com/s/BJO0IZx7zB6bOkotxQP2/scan-with-snyk/snyk-projects/project-tags)
80
+
81
+ ### `--json`
82
+
83
+ Print results to the console as a JSON data structure. Example: `snyk secrets test --json`
84
+
85
+ ### `--json-file-output=<OUTPUT_FILE_PATH>`
86
+
87
+ Save test output as a JSON data structure directly to the specified file, regardless of whether you use the `--json` option. Use this option to display human-readable test output using `stdout` and, at the same time, save the JSON data structure output to a file. For Secrets, Snyk does not create a JSON file if no issues are found. For open source, Snyk creates a file whether or not issues are found. Example: `snyk secrets test --json-file-output=detected-secrets.json`
88
+
89
+ ### `--sarif`
90
+
91
+ Return results in SARIF format. Example: `snyk secrets test --sarif`
92
+
93
+ ### `--sarif-file-output=<OUTPUT_FILE_PATH>`
94
+
95
+ Save test output in SARIF format directly to the `<OUTPUT_FILE_PATH>` file, regardless of whether you use the `--sarif` option. Use this option to display human-readable test output using `stdout` and, at the same time, save the SARIF format output to a file. When running multiple scans, such as Secrets and Code scans, the SARIF output includes data only from the most recently completed scan. If you run multiple scans sequentially and specify the same `--sarif-file-output` file path, each subsequent scan overwrites the previous SARIF file. To keep results separate, save each scan to a different SARIF output file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snyk",
3
- "version": "1.1306.3",
3
+ "version": "1.1306.4",
4
4
  "description": "snyk library and cli utility",
5
5
  "mcpName": "io.snyk/mcp",
6
6
  "files": [
@@ -1,9 +1,9 @@
1
- 342fc5fcb4b6a43105329dde928491dee5968350b8eb52a5187f4b13639227d5 snyk-alpine-arm64
2
- a2bdff8e6efd27aa070c5dda5681d687e9ddbb45522efc9955c27c32f93b84be snyk-alpine
3
- 84dd03dc8cd7d4e80501d20d9737aff22b1ed5cd03a1fa62a28d679ac9d419d3 snyk-fix.tgz
4
- a31bb3b69ac88b1f1a7795e9a1800d834c3e843eede06a347d5cd13c955efe02 snyk-linux-arm64
5
- a76435dab2cecf567d2be13c5dd5dc5db1bc5959adf0f185e5f9419574ceb6fa snyk-linux
6
- 6affd215ef52f0eebaddd34e946c64bc8cfb06223387d8e6164a10501910fa92 snyk-macos-arm64
7
- b6fed621d28f16b712a8ea3c7121a3ecfab1ca806af41f08f86987c9c9f9b81f snyk-macos
8
- c2e1042feeca60a4a83c3f7521cee244c37645cf7c0c32ff6200a9e7d9a3efd2 snyk-protect.tgz
9
- 00d00dd69bdde4dda5bbd91add4c5a93c457d97c30673b2fe53ce633d3195df3 snyk-win.exe
1
+ 72aef488d0134231846dce8152973e14a4e9c2f07eb52a950c9aa0ba065da29e snyk-alpine-arm64
2
+ 4177ff271cb6a434ea6f9613d8c6e7e0d7d66e4dd00e726d57371a2a50de9059 snyk-alpine
3
+ d06a1e45addf9c852ec949b0cb782e065c9bd8561747d0fcaa70e638df12b503 snyk-fix.tgz
4
+ d970aef55c25dc3cb5986853e69643aac7e20acf8c56ffbd304218f41470a7d2 snyk-linux-arm64
5
+ 78a83f57a16cb660879cb29f75fcb4a6c1ba07791dceb41e2b840fb89741c95c snyk-linux
6
+ c9f0ef8c4b555f3ac4eb6d3d874d2d06260a58d39e91dbcac4008cfb74c9ecbb snyk-macos-arm64
7
+ f902dbc0be77cd3778d2a7119cc7235e220cf2ef809171b17b95e295b2e23d35 snyk-macos
8
+ dd5edfef8564d30c91d51df386737b03f5a1f31929d551a3a4e114818a123d4f snyk-protect.tgz
9
+ 45e0a8f6f451b471e86e7d94ed9622e53b66f92b7e2bcc1a0680d3306f256296 snyk-win.exe
@@ -1 +1 @@
1
- 1.1306.3
1
+ 1.1306.4
@@ -1,9 +1,9 @@
1
- 342fc5fcb4b6a43105329dde928491dee5968350b8eb52a5187f4b13639227d5 snyk-alpine-arm64
2
- a2bdff8e6efd27aa070c5dda5681d687e9ddbb45522efc9955c27c32f93b84be snyk-alpine
3
- 84dd03dc8cd7d4e80501d20d9737aff22b1ed5cd03a1fa62a28d679ac9d419d3 snyk-fix.tgz
4
- a31bb3b69ac88b1f1a7795e9a1800d834c3e843eede06a347d5cd13c955efe02 snyk-linux-arm64
5
- a76435dab2cecf567d2be13c5dd5dc5db1bc5959adf0f185e5f9419574ceb6fa snyk-linux
6
- 6affd215ef52f0eebaddd34e946c64bc8cfb06223387d8e6164a10501910fa92 snyk-macos-arm64
7
- b6fed621d28f16b712a8ea3c7121a3ecfab1ca806af41f08f86987c9c9f9b81f snyk-macos
8
- c2e1042feeca60a4a83c3f7521cee244c37645cf7c0c32ff6200a9e7d9a3efd2 snyk-protect.tgz
9
- 00d00dd69bdde4dda5bbd91add4c5a93c457d97c30673b2fe53ce633d3195df3 snyk-win.exe
1
+ 72aef488d0134231846dce8152973e14a4e9c2f07eb52a950c9aa0ba065da29e snyk-alpine-arm64
2
+ 4177ff271cb6a434ea6f9613d8c6e7e0d7d66e4dd00e726d57371a2a50de9059 snyk-alpine
3
+ d06a1e45addf9c852ec949b0cb782e065c9bd8561747d0fcaa70e638df12b503 snyk-fix.tgz
4
+ d970aef55c25dc3cb5986853e69643aac7e20acf8c56ffbd304218f41470a7d2 snyk-linux-arm64
5
+ 78a83f57a16cb660879cb29f75fcb4a6c1ba07791dceb41e2b840fb89741c95c snyk-linux
6
+ c9f0ef8c4b555f3ac4eb6d3d874d2d06260a58d39e91dbcac4008cfb74c9ecbb snyk-macos-arm64
7
+ f902dbc0be77cd3778d2a7119cc7235e220cf2ef809171b17b95e295b2e23d35 snyk-macos
8
+ dd5edfef8564d30c91d51df386737b03f5a1f31929d551a3a4e114818a123d4f snyk-protect.tgz
9
+ 45e0a8f6f451b471e86e7d94ed9622e53b66f92b7e2bcc1a0680d3306f256296 snyk-win.exe
@@ -1 +1 @@
1
- 1.1306.3
1
+ 1.1306.4