snyk 1.1150.0 → 1.1151.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/dist/cli/95.index.js +2 -4
- package/dist/cli/95.index.js.map +1 -1
- package/dist/cli/thirdPartyNotice.json +2 -2
- package/help/cli-commands/code-test.md +15 -1
- package/help/cli-commands/container-monitor.md +1 -1
- package/help/cli-commands/container-test.md +7 -3
- package/help/cli-commands/iac-test.md +3 -1
- package/help/cli-commands/ignore.md +2 -0
- package/help/cli-commands/sbom.md +2 -12
- package/package.json +1 -1
- package/src/generated/sha256sums.txt +10 -10
- package/src/generated/version +1 -1
- package/wrapper_dist/generated/sha256sums.txt +10 -10
- package/wrapper_dist/generated/version +1 -1
package/dist/cli/95.index.js
CHANGED
|
@@ -6773,9 +6773,7 @@ async function getFilters(baseURL, source, attempts = constants_1.MAX_RETRY_ATTE
|
|
|
6773
6773
|
exports.getFilters = getFilters;
|
|
6774
6774
|
function commonHttpHeaders(options) {
|
|
6775
6775
|
return {
|
|
6776
|
-
|
|
6777
|
-
// We need to be able to test code-client without deepcode locally
|
|
6778
|
-
Authorization: `Bearer ${options.sessionToken}`,
|
|
6776
|
+
Authorization: options.sessionToken,
|
|
6779
6777
|
source: options.source,
|
|
6780
6778
|
...(options.requestId && { 'snyk-request-id': options.requestId }),
|
|
6781
6779
|
...(options.org && { 'snyk-org-name': options.org }),
|
|
@@ -153552,7 +153550,7 @@ async function scan(options) {
|
|
|
153552
153550
|
});
|
|
153553
153551
|
}
|
|
153554
153552
|
const [filePaths, archivePaths] = await find_1.find(projectRoot, excludedPatterns);
|
|
153555
|
-
if (
|
|
153553
|
+
if (filePaths.length + archivePaths.length == 0) {
|
|
153556
153554
|
throw 'There were no files in the target directory that could be scanned. Check if the directory is empty or if an ignore policy is active.';
|
|
153557
153555
|
}
|
|
153558
153556
|
let extractionWorkspace = undefined;
|