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 CHANGED
@@ -266,27 +266,33 @@ snyk code --help
266
266
 
267
267
  # Getting support
268
268
 
269
- We recommend reaching out via the [support@snyk.io](mailto:support@snyk.io) email whenever you need help with Snyk CLI or Snyk in general.
269
+ If you need support using Snyk CLI, please [contact support](https://support.snyk.io).
270
270
 
271
- GitHub Issues on any [Snyk project](https://github.com/snyk) are not actively monitored by Snyk support.
271
+ We do not actively monitor GitHub Issues so any issues there may go unnoticed.
272
272
 
273
- ## Contributing
273
+ # Contributing
274
274
 
275
- This project is open source but we don't encourage outside contributors.
276
- You may look into [design decisions in the Snyk CLI](help/_about-this-project/README.md).
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/protect`](packages/snyk-protect): [npm package for `snyk-protect` command](https://www.npmjs.com/package/@snyk/protect)
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
- ## Security
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
- ## Notices
290
+ # Notices
287
291
 
288
- ### Snyk API usage policy
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
@@ -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
  /***/ }),