snyk 1.883.0 → 1.886.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 +15 -9
- package/dist/cli/293.index.js +11 -1
- package/dist/cli/293.index.js.map +1 -1
- package/dist/cli/450.index.js +61 -0
- package/dist/cli/450.index.js.map +1 -0
- package/dist/cli/459.index.js +13 -24
- package/dist/cli/459.index.js.map +1 -1
- package/dist/cli/917.index.js +42 -20
- package/dist/cli/917.index.js.map +1 -1
- package/dist/cli/commands/report/errors/unsupported-report-command.d.ts +4 -0
- package/dist/cli/commands/report/index.d.ts +3 -0
- package/dist/cli/commands/test/iac-local-execution/measurable-methods.d.ts +1 -1
- package/dist/cli/commands/test/iac-local-execution/results-formatter.d.ts +1 -1
- package/dist/cli/commands/test/iac-local-execution/share-results.d.ts +9 -2
- package/dist/cli/commands/test/iac-local-execution/types.d.ts +10 -2
- package/dist/cli/index.js +5 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/lib/ecosystems/types.d.ts +1 -0
- package/dist/lib/formatters/iac-output.d.ts +2 -1
- package/dist/lib/iac/cli-share-results.d.ts +8 -2
- package/dist/lib/iac/drift.d.ts +1 -1
- package/dist/lib/iac/envelope-formatters.d.ts +2 -2
- package/dist/lib/types.d.ts +7 -1
- package/help/cli-commands/README.md +2 -10
- package/help/cli-commands/iac-describe.md +3 -1
- package/help/cli-commands/iac-report.md +7 -0
- package/help/cli-commands/iac-test.md +63 -4
- package/help/cli-commands/iac.md +16 -126
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -266,27 +266,33 @@ snyk code --help
|
|
|
266
266
|
|
|
267
267
|
# Getting support
|
|
268
268
|
|
|
269
|
-
|
|
269
|
+
If you need support using Snyk CLI, please [contact support](https://support.snyk.io).
|
|
270
270
|
|
|
271
|
-
|
|
271
|
+
We do not actively monitor GitHub Issues so any issues there may go unnoticed.
|
|
272
272
|
|
|
273
|
-
|
|
273
|
+
# Contributing
|
|
274
274
|
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
If you are an external contributor, before working on any contributions, please first [contact support](https://support.snyk.io) to discuss the issue or feature request with us.
|
|
276
|
+
|
|
277
|
+
If you are contributing to Snyk CLI, see [our contributing guidelines](CONTRIBUTING.md)
|
|
278
|
+
|
|
279
|
+
For information on how Snyk CLI is implemented, see [our design decisions](help/_about-this-project/README.md).
|
|
277
280
|
|
|
278
281
|
This repository is a monorepo, also covering other projects and tools:
|
|
279
282
|
|
|
280
|
-
- [`@snyk/
|
|
283
|
+
- [`@snyk/fix`](packages/snyk-fix): npm package for `snyk fix` libraries.
|
|
284
|
+
- [`@snyk/protect`](packages/snyk-protect): npm package for [`snyk-protect`](https://www.npmjs.com/package/@snyk/protect) command.
|
|
281
285
|
|
|
282
|
-
|
|
286
|
+
# Security
|
|
283
287
|
|
|
284
288
|
For any security issues or concerns, please see [SECURITY.md](SECURITY.md) file in this repository.
|
|
285
289
|
|
|
286
|
-
|
|
290
|
+
# Notices
|
|
287
291
|
|
|
288
|
-
|
|
292
|
+
## Snyk API usage policy
|
|
289
293
|
|
|
290
294
|
The use of Snyk's API, whether through the use of the 'snyk' npm package or otherwise, is subject to the [Terms & Conditions](https://snyk.co/ucT6N).
|
|
291
295
|
|
|
296
|
+
---
|
|
297
|
+
|
|
292
298
|
Made with 💜 by Snyk
|
package/dist/cli/293.index.js
CHANGED
|
@@ -1800,7 +1800,7 @@ exports.getSeverityValue = getSeverityValue;
|
|
|
1800
1800
|
"use strict";
|
|
1801
1801
|
|
|
1802
1802
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1803
|
-
exports.mapIacTestResponseToSarifResults = exports.extractReportingDescriptor = exports.createSarifOutputForIac = exports.capitalizePackageManager = exports.getIacDisplayErrorFileOutput = exports.getIacDisplayedOutput = void 0;
|
|
1803
|
+
exports.shareResultsOutput = exports.mapIacTestResponseToSarifResults = exports.extractReportingDescriptor = exports.createSarifOutputForIac = exports.capitalizePackageManager = exports.getIacDisplayErrorFileOutput = exports.getIacDisplayedOutput = void 0;
|
|
1804
1804
|
const chalk_1 = __webpack_require__(32589);
|
|
1805
1805
|
const theme_1 = __webpack_require__(86988);
|
|
1806
1806
|
const Debug = __webpack_require__(15158);
|
|
@@ -1816,6 +1816,7 @@ const detect_1 = __webpack_require__(45318);
|
|
|
1816
1816
|
const get_severity_value_1 = __webpack_require__(24898);
|
|
1817
1817
|
const sarif_output_1 = __webpack_require__(5034);
|
|
1818
1818
|
const version_1 = __webpack_require__(38217);
|
|
1819
|
+
const config_1 = __webpack_require__(22541);
|
|
1819
1820
|
const debug = Debug('iac-output');
|
|
1820
1821
|
function formatIacIssue(issue, isNew, path) {
|
|
1821
1822
|
const newBadge = isNew ? ' (new)' : '';
|
|
@@ -2055,6 +2056,15 @@ function getPathRelativeToRepoRoot(repoRoot, basePath, filePath) {
|
|
|
2055
2056
|
const fullPath = pathLib.resolve(basePath, filePath).replace(/\\/g, '/');
|
|
2056
2057
|
return fullPath.replace(repoRoot, '');
|
|
2057
2058
|
}
|
|
2059
|
+
function shareResultsOutput(iacOutputMeta) {
|
|
2060
|
+
let projectName = iacOutputMeta.projectName;
|
|
2061
|
+
if (iacOutputMeta === null || iacOutputMeta === void 0 ? void 0 : iacOutputMeta.gitRemoteUrl) {
|
|
2062
|
+
// from "http://github.com/snyk/cli.git" to "snyk/cli"
|
|
2063
|
+
projectName = iacOutputMeta.gitRemoteUrl.replace(/^https?:\/\/github.com\/(.*)\.git$/, '$1');
|
|
2064
|
+
}
|
|
2065
|
+
return `Your test results are available at: ${config_1.default.ROOT}/org/${iacOutputMeta.orgName}/projects under the name ${projectName}`;
|
|
2066
|
+
}
|
|
2067
|
+
exports.shareResultsOutput = shareResultsOutput;
|
|
2058
2068
|
|
|
2059
2069
|
|
|
2060
2070
|
/***/ }),
|