snyk 1.1228.0 → 1.1230.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/917.index.js +11 -11
- package/dist/cli/917.index.js.map +1 -1
- package/help/cli-commands/README.md +9 -9
- package/help/cli-commands/code.md +3 -7
- package/help/cli-commands/container.md +3 -6
- package/help/cli-commands/sbom.md +97 -5
- package/package.json +1 -1
- package/src/generated/binary-deployments.json +1 -1
- package/src/generated/sha256sums.txt +8 -7
- package/src/generated/version +1 -1
- package/test/acceptance/basic.spec.ts +2 -1
- package/test/unit/common.spec.ts +5 -4
- package/wrapper_dist/generated/binary-deployments.json +1 -1
- package/wrapper_dist/generated/sha256sums.txt +8 -7
- package/wrapper_dist/generated/version +1 -1
package/dist/cli/917.index.js
CHANGED
|
@@ -4920,13 +4920,12 @@ exports.policyEngineChecksum = utils_1.getChecksum(exports.policyEngineFileName)
|
|
|
4920
4920
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4921
4921
|
exports.getChecksum = exports.formatPolicyEngineFileName = exports.policyEngineVersion = void 0;
|
|
4922
4922
|
const os = __webpack_require__(22037);
|
|
4923
|
-
// TODO: update!
|
|
4924
4923
|
const policyEngineChecksums = `
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4924
|
+
3c9f5eaffe9c8bc38e29281f31c93925bd8b265fbcc90f8271841e71ae5570d0 snyk-iac-test_0.50.0_Darwin_x86_64
|
|
4925
|
+
526b45c0132f612266c210217220cb3e8c6158b1b1a5238ed25f4b98b6eaffe5 snyk-iac-test_0.50.0_Windows_x86_64.exe
|
|
4926
|
+
54941a2be1d060aedbda27bf04a9943ab8d5d9fe34b2a3be38a9093b6abf8290 snyk-iac-test_0.50.0_Linux_arm64
|
|
4927
|
+
8dae6e8d92ac545425fcad8bc04c1c6e98ddee78a11c1b3f326b97022499c27d snyk-iac-test_0.50.0_Darwin_arm64
|
|
4928
|
+
9b5857cc508d87703e50a2ae29e36a06d9263e23734fac6fb481a830b63e7d92 snyk-iac-test_0.50.0_Linux_x86_64
|
|
4930
4929
|
`;
|
|
4931
4930
|
exports.policyEngineVersion = getPolicyEngineVersion();
|
|
4932
4931
|
function formatPolicyEngineFileName(releaseVersion) {
|
|
@@ -5656,14 +5655,18 @@ async function scan(options, policyEnginePath, rulesBundlePath, rulesClientURL)
|
|
|
5656
5655
|
exports.scan = scan;
|
|
5657
5656
|
async function scanWithConfig(options, policyEnginePath, rulesBundlePath, rulesClientURL, policyPath, outputPath) {
|
|
5658
5657
|
const env = { ...process.env };
|
|
5658
|
+
const apiUrl = config_1.default.API_REST_URL;
|
|
5659
|
+
if (apiUrl.startsWith('http://')) {
|
|
5660
|
+
console.warn('\nYou configured the Snyk CLI to use an API URL with an HTTP scheme. This option is insecure and might prevent the Snyk CLI from working correctly.');
|
|
5661
|
+
}
|
|
5659
5662
|
env['SNYK_IAC_TEST_API_REST_URL'] =
|
|
5660
|
-
process.env['SNYK_IAC_TEST_API_REST_URL'] ||
|
|
5663
|
+
process.env['SNYK_IAC_TEST_API_REST_URL'] || apiUrl;
|
|
5661
5664
|
env['SNYK_IAC_TEST_API_REST_TOKEN'] =
|
|
5662
5665
|
process.env['SNYK_IAC_TEST_API_REST_TOKEN'] || getApiToken();
|
|
5663
5666
|
env['SNYK_IAC_TEST_API_REST_OAUTH_TOKEN'] =
|
|
5664
5667
|
process.env['SNYK_IAC_TEST_API_REST_OAUTH_TOKEN'] || api_token_1.getOAuthToken();
|
|
5665
5668
|
env['SNYK_IAC_TEST_API_V1_URL'] =
|
|
5666
|
-
process.env['SNYK_IAC_TEST_API_V1_URL'] ||
|
|
5669
|
+
process.env['SNYK_IAC_TEST_API_V1_URL'] || apiUrl;
|
|
5667
5670
|
env['SNYK_IAC_TEST_API_V1_TOKEN'] =
|
|
5668
5671
|
process.env['SNYK_IAC_TEST_API_V1_TOKEN'] || getApiToken();
|
|
5669
5672
|
env['SNYK_IAC_TEST_API_V1_OAUTH_TOKEN'] =
|
|
@@ -5801,9 +5804,6 @@ async function remove(path) {
|
|
|
5801
5804
|
});
|
|
5802
5805
|
});
|
|
5803
5806
|
}
|
|
5804
|
-
function getApiUrl() {
|
|
5805
|
-
return config_1.default.API_REST_URL;
|
|
5806
|
-
}
|
|
5807
5807
|
function getApiToken() {
|
|
5808
5808
|
return api_token_1.api() || '';
|
|
5809
5809
|
}
|