@catladder/cli 0.0.0-main-a008667a → 0.0.0-main-48ef3537

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.
@@ -350203,6 +350203,76 @@ exports.RUNNER_BUILD_RESOURCE_VARIABLES = {
350203
350203
 
350204
350204
  /***/ }),
350205
350205
 
350206
+ /***/ 5669:
350207
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
350208
+
350209
+ "use strict";
350210
+
350211
+
350212
+ var __assign = this && this.__assign || function () {
350213
+ __assign = Object.assign || function (t) {
350214
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
350215
+ s = arguments[i];
350216
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
350217
+ }
350218
+ return t;
350219
+ };
350220
+ return __assign.apply(this, arguments);
350221
+ };
350222
+ var __read = this && this.__read || function (o, n) {
350223
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
350224
+ if (!m) return o;
350225
+ var i = m.call(o),
350226
+ r,
350227
+ ar = [],
350228
+ e;
350229
+ try {
350230
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
350231
+ } catch (error) {
350232
+ e = {
350233
+ error: error
350234
+ };
350235
+ } finally {
350236
+ try {
350237
+ if (r && !r.done && (m = i["return"])) m.call(i);
350238
+ } finally {
350239
+ if (e) throw e.error;
350240
+ }
350241
+ }
350242
+ return ar;
350243
+ };
350244
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
350245
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
350246
+ if (ar || !(i in from)) {
350247
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
350248
+ ar[i] = from[i];
350249
+ }
350250
+ }
350251
+ return to.concat(ar || Array.prototype.slice.call(from));
350252
+ };
350253
+ exports.__esModule = true;
350254
+ exports.createArtifactsConfig = void 0;
350255
+ var path_1 = __nccwpck_require__(71017);
350256
+ var createArtifactsConfig = function (rootPath, artifactsReports, artifacts) {
350257
+ var _a, _b, _c, _d;
350258
+ return artifactsReports || artifacts ? {
350259
+ artifacts: __assign(__assign({
350260
+ paths: []
350261
+ }, artifacts), {
350262
+ reports: __assign(__assign({}, artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports), {
350263
+ junit: [artifactsReports === null || artifactsReports === void 0 ? void 0 : artifactsReports.junit, Array.isArray((_a = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _a === void 0 ? void 0 : _a.junit) && ((_b = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _b === void 0 ? void 0 : _b.junit), typeof ((_c = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _c === void 0 ? void 0 : _c.junit) === "string" && [(_d = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _d === void 0 ? void 0 : _d.junit]].filter(Array.isArray).reduce(function (acc, curr) {
350264
+ return __spreadArray(__spreadArray([], __read(acc), false), __read(curr.map(function (p) {
350265
+ return (0, path_1.join)(rootPath, p);
350266
+ })), false);
350267
+ }, [])
350268
+ })
350269
+ })
350270
+ } : undefined;
350271
+ };
350272
+ exports.createArtifactsConfig = createArtifactsConfig;
350273
+
350274
+ /***/ }),
350275
+
350206
350276
  /***/ 58063:
350207
350277
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
350208
350278
 
@@ -350417,6 +350487,8 @@ var constants_1 = __nccwpck_require__(11542);
350417
350487
  var createBuildJob_1 = __nccwpck_require__(58063);
350418
350488
  var docker_1 = __nccwpck_require__(33219);
350419
350489
  var types_1 = __nccwpck_require__(71197);
350490
+ var sbom_1 = __nccwpck_require__(9927);
350491
+ var sbom_2 = __nccwpck_require__(65928);
350420
350492
  var RUNNER_BUILD_VARIABLES = {
350421
350493
  KUBERNETES_CPU_REQUEST: "0.5",
350422
350494
  KUBERNETES_CPU_LIMIT: "2",
@@ -350442,12 +350514,12 @@ var createCustomBuildJobs = function (context) {
350442
350514
  expire_in: "1 day"
350443
350515
  }
350444
350516
  }) : null;
350445
- return __spreadArray(__spreadArray([], __read(appBuildJob ? [appBuildJob] : []), false), __read((0, docker_1.requiresDockerBuild)(context) ? [(0, docker_1.createDockerBuildJobDefault)(context, {
350517
+ return __spreadArray(__spreadArray(__spreadArray([], __read(appBuildJob ? [appBuildJob] : []), false), __read((0, docker_1.requiresDockerBuild)(context) ? [(0, docker_1.createDockerBuildJobDefault)(context, {
350446
350518
  script: [((_d = buildConfig.docker) === null || _d === void 0 ? void 0 : _d.type) === "nginx" ? "ensureNginxDockerfile" : "" // e.g. custom,
350447
350519
  ].filter(Boolean),
350448
350520
  variables: {},
350449
350521
  needs: appBuildJob ? [constants_1.APP_BUILD_JOB_NAME] : []
350450
- })] : []), false);
350522
+ })] : []), false), __read((0, sbom_2.sbomDeactivated)(context) ? [] : [(0, sbom_1.createSbomBuildJob)(context)]), false);
350451
350523
  };
350452
350524
  exports.createCustomBuildJobs = createCustomBuildJobs;
350453
350525
 
@@ -350550,9 +350622,9 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
350550
350622
  };
350551
350623
  exports.__esModule = true;
350552
350624
  exports.createCustomTestJobs = void 0;
350553
- var path_1 = __nccwpck_require__(71017);
350554
350625
  var utils_1 = __nccwpck_require__(37461);
350555
350626
  var types_1 = __nccwpck_require__(71197);
350627
+ var createArtifactsConfig_1 = __nccwpck_require__(5669);
350556
350628
  var RUNNER_CUSTOM_TEST_VARIABLES = {
350557
350629
  KUBERNETES_CPU_REQUEST: "0.5",
350558
350630
  KUBERNETES_CPU_LIMIT: "2",
@@ -350560,7 +350632,7 @@ var RUNNER_CUSTOM_TEST_VARIABLES = {
350560
350632
  KUBERNETES_MEMORY_LIMIT: "4Gi"
350561
350633
  };
350562
350634
  var createCustomTestJobs = function (context) {
350563
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
350635
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
350564
350636
  // don't run tests after release
350565
350637
  if (((_a = context.commitInfo) === null || _a === void 0 ? void 0 : _a.trigger) === "taggedRelease") {
350566
350638
  return [];
@@ -350586,35 +350658,22 @@ var createCustomTestJobs = function (context) {
350586
350658
  cache: undefined,
350587
350659
  script: __spreadArray([], __read((_f = (0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : []), false),
350588
350660
  allow_failure: true
350589
- }), createArtifactsConfig(context.componentConfig.dir, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifactsReports)) : null;
350661
+ }), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifactsReports, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifacts)) : null;
350590
350662
  var lintJob = buildConfig.lint ? __assign(__assign(__assign({
350591
350663
  name: "👮 lint"
350592
350664
  }, base), {
350593
- image: (_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.jobImage) !== null && _j !== void 0 ? _j : buildConfig.jobImage,
350594
- script: __spreadArray([], __read((_l = (0, utils_1.ensureArray)((_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.command)) !== null && _l !== void 0 ? _l : []), false)
350595
- }), createArtifactsConfig(context.componentConfig.dir, (_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.artifactsReports)) : null;
350665
+ image: (_k = (_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.jobImage) !== null && _k !== void 0 ? _k : buildConfig.jobImage,
350666
+ script: __spreadArray([], __read((_m = (0, utils_1.ensureArray)((_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.command)) !== null && _m !== void 0 ? _m : []), false)
350667
+ }), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.artifactsReports, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifacts)) : null;
350596
350668
  var testJob = buildConfig.test ? __assign(__assign(__assign({
350597
350669
  name: "🧪 test"
350598
350670
  }, base), {
350599
- image: (_p = (_o = buildConfig.test) === null || _o === void 0 ? void 0 : _o.jobImage) !== null && _p !== void 0 ? _p : buildConfig.jobImage,
350600
- script: __spreadArray([], __read((_r = (0, utils_1.ensureArray)((_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.command)) !== null && _r !== void 0 ? _r : []), false)
350601
- }), createArtifactsConfig(context.componentConfig.dir, (_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.artifactsReports)) : null;
350671
+ image: (_r = (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.jobImage) !== null && _r !== void 0 ? _r : buildConfig.jobImage,
350672
+ script: __spreadArray([], __read((_t = (0, utils_1.ensureArray)((_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.command)) !== null && _t !== void 0 ? _t : []), false)
350673
+ }), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.artifactsReports, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifacts)) : null;
350602
350674
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
350603
350675
  };
350604
350676
  exports.createCustomTestJobs = createCustomTestJobs;
350605
- var createArtifactsConfig = function (rootPath, artifactsReports) {
350606
- var _a, _b;
350607
- return artifactsReports ? {
350608
- artifacts: {
350609
- paths: [],
350610
- reports: {
350611
- junit: (_b = (_a = artifactsReports === null || artifactsReports === void 0 ? void 0 : artifactsReports.junit) === null || _a === void 0 ? void 0 : _a.map(function (p) {
350612
- return (0, path_1.join)(rootPath, p);
350613
- })) !== null && _b !== void 0 ? _b : []
350614
- }
350615
- }
350616
- } : undefined;
350617
- };
350618
350677
 
350619
350678
  /***/ }),
350620
350679
 
@@ -350911,6 +350970,8 @@ var cache_1 = __nccwpck_require__(54303);
350911
350970
  var constants_2 = __nccwpck_require__(69284);
350912
350971
  var yarn_1 = __nccwpck_require__(10464);
350913
350972
  var runner_1 = __nccwpck_require__(55071);
350973
+ var sbom_1 = __nccwpck_require__(9927);
350974
+ var sbom_2 = __nccwpck_require__(65928);
350914
350975
  var createNodeBuildJobs = function (context) {
350915
350976
  var _a, _b, _c, _d, _e, _f, _g;
350916
350977
  var buildConfig = context.componentConfig.build;
@@ -350932,7 +350993,7 @@ var createNodeBuildJobs = function (context) {
350932
350993
  },
350933
350994
  jobTags: buildConfig.jobTags
350934
350995
  }) : null;
350935
- return __spreadArray(__spreadArray([], __read(appBuildJob ? [appBuildJob] : []), false), __read((0, docker_1.requiresDockerBuild)(context) ? [(0, docker_1.createDockerBuildJobDefault)(context, {
350996
+ return __spreadArray(__spreadArray(__spreadArray([], __read(appBuildJob ? [appBuildJob] : []), false), __read((0, docker_1.requiresDockerBuild)(context) ? [(0, docker_1.createDockerBuildJobDefault)(context, {
350936
350997
  script: [buildConfig.type === "node-static" || buildConfig.type === "storybook" ? "ensureNginxDockerfile" : "ensureNodeDockerfile"],
350937
350998
  cache: __spreadArray([], __read((0, cache_1.getYarnCache)(context, "pull")), false),
350938
350999
  variables: {
@@ -350943,7 +351004,7 @@ var createNodeBuildJobs = function (context) {
350943
351004
  })) === null || _g === void 0 ? void 0 : _g.join("\n")
350944
351005
  },
350945
351006
  needs: appBuildJob ? [constants_1.APP_BUILD_JOB_NAME] : []
350946
- })] : []), false);
351007
+ })] : []), false), __read((0, sbom_2.sbomDeactivated)(context) ? [] : [(0, sbom_1.createSbomBuildJob)(context)]), false);
350947
351008
  };
350948
351009
  exports.createNodeBuildJobs = createNodeBuildJobs;
350949
351010
 
@@ -351259,8 +351320,9 @@ var utils_1 = __nccwpck_require__(37461);
351259
351320
  var cache_1 = __nccwpck_require__(54303);
351260
351321
  var constants_1 = __nccwpck_require__(69284);
351261
351322
  var yarn_1 = __nccwpck_require__(10464);
351323
+ var createArtifactsConfig_1 = __nccwpck_require__(5669);
351262
351324
  var createNodeTestJobs = function (context) {
351263
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
351325
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
351264
351326
  // don't run tests after release
351265
351327
  if (((_a = context.commitInfo) === null || _a === void 0 ? void 0 : _a.trigger) === "taggedRelease") {
351266
351328
  return [];
@@ -351276,7 +351338,7 @@ var createNodeTestJobs = function (context) {
351276
351338
  envMode: "none"
351277
351339
  };
351278
351340
  var yarnInstall = (0, yarn_1.getYarnInstall)(context);
351279
- var auditJob = buildConfig.audit !== false ? __assign(__assign({
351341
+ var auditJob = buildConfig.audit !== false ? __assign(__assign(__assign({
351280
351342
  name: "🛡 audit"
351281
351343
  }, base), {
351282
351344
  image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : defaultImage,
@@ -351284,21 +351346,21 @@ var createNodeTestJobs = function (context) {
351284
351346
  script: __spreadArray(["cd ".concat(context.componentConfig.dir)], __read((_f = (0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [((_g = context.packageManagerInfo) === null || _g === void 0 ? void 0 : _g.isClassic) ? "yarn audit" : "yarn npm audit --environment production" // yarn 2
351285
351347
  ]), false),
351286
351348
  allow_failure: true
351287
- }) : null;
351288
- var lintJob = buildConfig.lint !== false ? __assign(__assign({
351349
+ }), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifactsReports, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifacts)) : null;
351350
+ var lintJob = buildConfig.lint !== false ? __assign(__assign(__assign({
351289
351351
  name: "👮 lint"
351290
351352
  }, base), {
351291
- image: (_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.jobImage) !== null && _j !== void 0 ? _j : defaultImage,
351353
+ image: (_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.jobImage) !== null && _l !== void 0 ? _l : defaultImage,
351292
351354
  cache: (0, cache_1.getNodeCache)(context),
351293
- script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((_l = (0, utils_1.ensureArray)((_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.command)) !== null && _l !== void 0 ? _l : ["yarn lint"]), false)
351294
- }) : null;
351295
- var testJob = buildConfig.test !== false ? __assign(__assign({
351355
+ script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((_o = (0, utils_1.ensureArray)((_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.command)) !== null && _o !== void 0 ? _o : ["yarn lint"]), false)
351356
+ }), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifactsReports, (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.artifacts)) : null;
351357
+ var testJob = buildConfig.test !== false ? __assign(__assign(__assign({
351296
351358
  name: "🧪 test"
351297
351359
  }, base), {
351298
- image: (_o = (_m = buildConfig.test) === null || _m === void 0 ? void 0 : _m.jobImage) !== null && _o !== void 0 ? _o : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
351360
+ image: (_s = (_r = buildConfig.test) === null || _r === void 0 ? void 0 : _r.jobImage) !== null && _s !== void 0 ? _s : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
351299
351361
  cache: (0, cache_1.getNodeCache)(context),
351300
- script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((_q = (0, utils_1.ensureArray)((_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.command)) !== null && _q !== void 0 ? _q : ["yarn test"]), false)
351301
- }) : null;
351362
+ script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((_u = (0, utils_1.ensureArray)((_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.command)) !== null && _u !== void 0 ? _u : ["yarn test"]), false)
351363
+ }), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifactsReports, (_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.artifacts)) : null;
351302
351364
  return [auditJob, lintJob, testJob].filter(utils_1.notNil);
351303
351365
  };
351304
351366
  exports.createNodeTestJobs = createNodeTestJobs;
@@ -351424,10 +351486,21 @@ var __read = this && this.__read || function (o, n) {
351424
351486
  }
351425
351487
  return ar;
351426
351488
  };
351489
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
351490
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
351491
+ if (ar || !(i in from)) {
351492
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
351493
+ ar[i] = from[i];
351494
+ }
351495
+ }
351496
+ return to.concat(ar || Array.prototype.slice.call(from));
351497
+ };
351427
351498
  exports.__esModule = true;
351428
351499
  exports.createRailsBuildJobs = void 0;
351429
351500
  var types_1 = __nccwpck_require__(71197);
351430
351501
  var docker_1 = __nccwpck_require__(33219);
351502
+ var sbom_1 = __nccwpck_require__(65928);
351503
+ var sbom_2 = __nccwpck_require__(9927);
351431
351504
  var createRailsBuildJobs = function (context) {
351432
351505
  var _a, _b, _c;
351433
351506
  var buildConfig = context.componentConfig.build;
@@ -351442,13 +351515,13 @@ var createRailsBuildJobs = function (context) {
351442
351515
  v = _b[1];
351443
351516
  return "--env '".concat(k).concat(v ? "=".concat(v) : "", "'");
351444
351517
  }).join(" ");
351445
- return [(0, docker_1.createDockerBuildJobBase)(context, {
351518
+ return __spreadArray([(0, docker_1.createDockerBuildJobBase)(context, {
351446
351519
  variables: __assign(__assign({}, context.environment.jobOnlyVars.build.envVars), context.componentConfig.build.extraVars),
351447
351520
  // custom script
351448
351521
  script: [docker_1.gitlabDockerLogin, "docker pull $DOCKER_CACHE_IMAGE || true", "wget --output-document=- https://github.com/buildpacks/pack/releases/download/v".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packVersion, "/pack-v").concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packVersion, "-linux.tgz | tar -zx --directory /usr/local/bin pack"), "chmod +x /usr/local/bin/pack",
351449
351522
  // replace private git ssh gem sources with https to make bundler with credentials via env var work
351450
351523
  "sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock", "pack build \"$DOCKER_IMAGE:$DOCKER_IMAGE_TAG\" --builder '".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image, "' --publish --cache-image \"$DOCKER_CACHE_IMAGE\" ").concat(packEnvArgs, " ").concat((_c = (_b = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _b === void 0 ? void 0 : _b.join(" ")) !== null && _c !== void 0 ? _c : "")]
351451
- })];
351524
+ })], __read((0, sbom_1.sbomDeactivated)(context) ? [] : [(0, sbom_2.createSbomBuildJob)(context)]), false);
351452
351525
  };
351453
351526
  exports.createRailsBuildJobs = createRailsBuildJobs;
351454
351527
 
@@ -351603,6 +351676,42 @@ exports.createRailsTestJobs = createRailsTestJobs;
351603
351676
 
351604
351677
  /***/ }),
351605
351678
 
351679
+ /***/ 9927:
351680
+ /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
351681
+
351682
+ "use strict";
351683
+
351684
+
351685
+ exports.__esModule = true;
351686
+ exports.createSbomBuildJob = exports.SBOM_FILE = exports.SBOM_BUILD_JOB_NAME = void 0;
351687
+ var utils_1 = __nccwpck_require__(37461);
351688
+ exports.SBOM_BUILD_JOB_NAME = "🧾 sbom";
351689
+ exports.SBOM_FILE = "__sbom.json";
351690
+ var createSbomBuildJob = function (context) {
351691
+ var _a, _b, _c, _d, _e;
351692
+ var buildConfig = context.componentConfig.build;
351693
+ var defaultImage = "aquasec/trivy:0.38.3";
351694
+ var defaultScript = ["trivy fs --quiet --format cyclonedx --output \"".concat(exports.SBOM_FILE, "\" ").concat(((_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.componentIsInWorkspace) ? "." : context.componentConfig.dir)];
351695
+ var image = buildConfig.type === "custom" && buildConfig.sbom !== false ? (_c = (_b = buildConfig.sbom) === null || _b === void 0 ? void 0 : _b.jobImage) !== null && _c !== void 0 ? _c : defaultImage : defaultImage;
351696
+ var script = buildConfig.type === "custom" && buildConfig.sbom !== false ? (_e = (0, utils_1.ensureArray)((_d = buildConfig.sbom) === null || _d === void 0 ? void 0 : _d.command)) !== null && _e !== void 0 ? _e : defaultScript : defaultScript;
351697
+ return {
351698
+ name: exports.SBOM_BUILD_JOB_NAME,
351699
+ stage: "build",
351700
+ envMode: "jobPerEnv",
351701
+ variables: {},
351702
+ cache: undefined,
351703
+ image: image,
351704
+ script: script,
351705
+ allow_failure: true,
351706
+ artifacts: {
351707
+ paths: [exports.SBOM_FILE]
351708
+ }
351709
+ };
351710
+ };
351711
+ exports.createSbomBuildJob = createSbomBuildJob;
351712
+
351713
+ /***/ }),
351714
+
351606
351715
  /***/ 71197:
351607
351716
  /***/ ((__unused_webpack_module, exports) => {
351608
351717
 
@@ -351793,7 +351902,7 @@ exports.readConfigSync = readConfigSync;
351793
351902
 
351794
351903
  exports.__esModule = true;
351795
351904
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
351796
- exports.PIPELINE_IMAGE_TAG = "main-a008667a" || 0;
351905
+ exports.PIPELINE_IMAGE_TAG = "main-48ef3537" || 0;
351797
351906
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
351798
351907
 
351799
351908
  /***/ }),
@@ -353063,9 +353172,42 @@ var __assign = this && this.__assign || function () {
353063
353172
  };
353064
353173
  return __assign.apply(this, arguments);
353065
353174
  };
353175
+ var __read = this && this.__read || function (o, n) {
353176
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
353177
+ if (!m) return o;
353178
+ var i = m.call(o),
353179
+ r,
353180
+ ar = [],
353181
+ e;
353182
+ try {
353183
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
353184
+ } catch (error) {
353185
+ e = {
353186
+ error: error
353187
+ };
353188
+ } finally {
353189
+ try {
353190
+ if (r && !r.done && (m = i["return"])) m.call(i);
353191
+ } finally {
353192
+ if (e) throw e.error;
353193
+ }
353194
+ }
353195
+ return ar;
353196
+ };
353197
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
353198
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
353199
+ if (ar || !(i in from)) {
353200
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
353201
+ ar[i] = from[i];
353202
+ }
353203
+ }
353204
+ return to.concat(ar || Array.prototype.slice.call(from));
353205
+ };
353066
353206
  exports.__esModule = true;
353067
353207
  exports.getBaseRollbackJob = exports.getBaseDeploymentStopJob = exports.getBaseDeploymentJob = exports.ROLLBACK_JOB_NAME = exports.STOP_JOB_NAME = exports.DEPLOY_JOB_NAME = void 0;
353068
353208
  var docker_1 = __nccwpck_require__(33219);
353209
+ var sbom_1 = __nccwpck_require__(9927);
353210
+ var sbom_2 = __nccwpck_require__(65928);
353069
353211
  var utils_1 = __nccwpck_require__(92757);
353070
353212
  exports.DEPLOY_JOB_NAME = "🚀 Deploy";
353071
353213
  exports.STOP_JOB_NAME = "🛑 Stop ⚠️";
@@ -353091,13 +353233,16 @@ var getBaseDeploymentJob = function (context) {
353091
353233
  return {
353092
353234
  name: exports.DEPLOY_JOB_NAME,
353093
353235
  envMode: "stagePerEnv",
353094
- needs: context.componentConfig.deploy ? (_c = (_b = context.componentConfig.deploy.waitFor) === null || _b === void 0 ? void 0 : _b.map(function (c) {
353236
+ needs: __spreadArray(__spreadArray([], __read((0, sbom_2.sbomDeactivated)(context) ? [] : [{
353237
+ job: sbom_1.SBOM_BUILD_JOB_NAME,
353238
+ artifacts: true
353239
+ }]), false), __read(context.componentConfig.deploy ? (_c = (_b = context.componentConfig.deploy.waitFor) === null || _b === void 0 ? void 0 : _b.map(function (c) {
353095
353240
  return {
353096
353241
  componentName: c,
353097
353242
  job: exports.DEPLOY_JOB_NAME,
353098
353243
  artifacts: false
353099
353244
  };
353100
- })) !== null && _c !== void 0 ? _c : undefined : undefined,
353245
+ })) !== null && _c !== void 0 ? _c : [] : []), false),
353101
353246
  // we don't want to deploy when there is a broken test
353102
353247
  needsStages: [{
353103
353248
  stage: "build",
@@ -353229,6 +353374,7 @@ var database_1 = __nccwpck_require__(41384);
353229
353374
  var gitlab_1 = __nccwpck_require__(84997);
353230
353375
  var jobName_1 = __nccwpck_require__(77311);
353231
353376
  var createArgsString_1 = __nccwpck_require__(8686);
353377
+ var sbom_1 = __nccwpck_require__(65928);
353232
353378
  var setExtraVarsScripts = function (deployConfig) {
353233
353379
  return ["export GCLOUD_PROJECT_NUMBER=$(gcloud projects describe ".concat(deployConfig.projectId, " --format=\"value(projectNumber)\")"), "echo \"GCLOUD_PROJECT_NUMBER: $GCLOUD_PROJECT_NUMBER\""];
353234
353380
  };
@@ -353380,18 +353526,18 @@ var createGoogleCloudRunDeployJobs = function (context) {
353380
353526
  "gcloud beta run jobs executions list ".concat(commonArgsString, " --job ").concat(jobName, " --format=\"value(name)\" | xargs -I {} gcloud beta run jobs executions delete {} --quiet ").concat(commonArgsString), "gcloud beta run jobs delete ".concat(jobName, " ").concat(commonArgsString)];
353381
353527
  });
353382
353528
  };
353383
- var deployScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), __read(setExtraVarsScripts(deployConfig)), false), __read(pushImageToArtifactsRegistry), false), ["echo \"$ENV_VARS\" > ____envvars.yaml"], false), __read(deployConfig.cloudSql ? (0, database_1.getDatabaseCreateScript)(context, deployConfig) // we create the db, so that we can also delete it afterwards
353529
+ var deployScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), __read(setExtraVarsScripts(deployConfig)), false), __read(pushImageToArtifactsRegistry), false), ["echo \"$ENV_VARS\" > ____envvars.yaml"], false), __read(deployConfig.cloudSql ? (0, database_1.getDatabaseCreateScript)(context, deployConfig) // we create the db, so that we can also delete it afterwards
353384
353530
  : []), false), __read(getCreateScheduleScripts()), false), __read(getJobCreateScripts()), false), __read(getJobRunScripts("preDeploy")), false), __read(deployConfig.service !== false ? [getServiceDeployScript(deployConfig.service)] : []), false), __read(Object.entries((_b = deployConfig.additionalServices) !== null && _b !== void 0 ? _b : {}).map(function (_a) {
353385
353531
  var _b = __read(_a, 2),
353386
353532
  name = _b[0],
353387
353533
  service = _b[1];
353388
353534
  return getServiceDeployScript(service, "-" + name);
353389
- })), false), __read(getJobRunScripts("postDeploy")), false), ["docker image rm ".concat(gcloudImageName)], false);
353390
- var stopScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), __read(deployConfig.service !== false ? ["gcloud run services delete ".concat(serviceName, " ").concat(commonArgsString)] : []), false), __read(Object.entries((_c = deployConfig.additionalServices) !== null && _c !== void 0 ? _c : {}).map(function (_a) {
353535
+ })), false), __read(getJobRunScripts("postDeploy")), false), ["docker image rm ".concat(gcloudImageName)], false), __read((0, sbom_1.getDependencyTrackUploadScript)(context)), false);
353536
+ var stopScripts = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), __read(deployConfig.service !== false ? ["gcloud run services delete ".concat(serviceName, " ").concat(commonArgsString)] : []), false), __read(Object.entries((_c = deployConfig.additionalServices) !== null && _c !== void 0 ? _c : {}).map(function (_a) {
353391
353537
  var _b = __read(_a, 1),
353392
353538
  name = _b[0];
353393
353539
  return "gcloud run services delete ".concat(serviceName, "-").concat(name, " ").concat(commonArgsString);
353394
- })), false), __read(getDeleteSchedulesScripts()), false), __read(getDeleteJobsScripts()), false), __read(deployConfig.cloudSql && deployConfig.cloudSql.deleteDatabaseOnStop ? (0, database_1.getDatabaseDeleteScript)(context, deployConfig) : []), false);
353540
+ })), false), __read(getDeleteSchedulesScripts()), false), __read(getDeleteJobsScripts()), false), __read(deployConfig.cloudSql && deployConfig.cloudSql.deleteDatabaseOnStop ? (0, database_1.getDatabaseDeleteScript)(context, deployConfig) : []), false), __read((0, sbom_1.getDependencyTrackDeleteScript)(context)), false);
353395
353541
  return [(0, lodash_1.merge)({}, baseDeploymentJob, (0, docker_1.getDockerJobBaseProps)(context), {
353396
353542
  artifacts: {
353397
353543
  paths: ["____envvars.yaml"]
@@ -353771,6 +353917,7 @@ var yarn_1 = __nccwpck_require__(10464);
353771
353917
  var runner_1 = __nccwpck_require__(55071);
353772
353918
  var base_1 = __nccwpck_require__(89177);
353773
353919
  var types_1 = __nccwpck_require__(63109);
353920
+ var sbom_1 = __nccwpck_require__(65928);
353774
353921
  var createCustomDeployJobs = function (context) {
353775
353922
  var _a, _b, _c;
353776
353923
  var deployConfig = context.componentConfig.deploy;
@@ -353789,10 +353936,10 @@ var createCustomDeployJobs = function (context) {
353789
353936
  return __spreadArray([(0, lodash_1.merge)({}, baseDeploymentJob, {
353790
353937
  image: (_a = deployConfig.jobImage) !== null && _a !== void 0 ? _a : (0, runner_1.getRunnerImage)("jobs-default"),
353791
353938
  cache: (_b = deployConfig.jobCache) !== null && _b !== void 0 ? _b : [],
353792
- script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(deployConfig.requiresYarnInstall ? yarnInstall : []), false), __read(deployConfig.script), false)
353939
+ script: __spreadArray(__spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(deployConfig.requiresYarnInstall ? yarnInstall : []), false), __read(deployConfig.script), false), __read((0, sbom_1.getDependencyTrackUploadScript)(context)), false)
353793
353940
  })], __read(deployConfig.stopScript ? [(0, lodash_1.merge)({}, (0, base_1.getBaseDeploymentStopJob)(context), {
353794
353941
  image: (_c = deployConfig.jobImage) !== null && _c !== void 0 ? _c : (0, runner_1.getRunnerImage)("jobs-default"),
353795
- script: deployConfig.stopScript
353942
+ script: __spreadArray(__spreadArray([], __read(deployConfig.stopScript), false), __read((0, sbom_1.getDependencyTrackDeleteScript)(context)), false)
353796
353943
  })] : []), false);
353797
353944
  };
353798
353945
  exports.createCustomDeployJobs = createCustomDeployJobs;
@@ -354067,6 +354214,7 @@ var runner_1 = __nccwpck_require__(55071);
354067
354214
  var base_1 = __nccwpck_require__(89177);
354068
354215
  var types_1 = __nccwpck_require__(63109);
354069
354216
  var kubeValues_1 = __nccwpck_require__(1061);
354217
+ var sbom_1 = __nccwpck_require__(65928);
354070
354218
  var createKubernetesDeployJobs = function (context) {
354071
354219
  var _a, _b, _c;
354072
354220
  var deployConfig = context.componentConfig.deploy;
@@ -354104,12 +354252,12 @@ var createKubernetesDeployJobs = function (context) {
354104
354252
  var clusterName = "kube-".concat(context.environment.fullName);
354105
354253
  var connectContext = ["kubectl config set-cluster \"".concat(clusterName, "\" --server=\"$").concat((0, __1.getSecretVarNameForContext)(context, "KUBE_URL"), "\" --certificate-authority <(echo $").concat((0, __1.getSecretVarNameForContext)(context, "KUBE_CA_PEM"), " | base64 -d) --embed-certs=true"), "kubectl config set-credentials \"".concat(clusterName, "\" --token=\"$").concat((0, __1.getSecretVarNameForContext)(context, "KUBE_TOKEN"), "\""), "kubectl config set-context \"".concat(clusterName, "\" --cluster=\"").concat(clusterName, "\" --user=\"").concat(clusterName, "\" --namespace=\"").concat(context.environment.envVars.KUBE_NAMESPACE, "\""), "kubectl config use-context \"".concat(clusterName, "\"")];
354106
354254
  return [(0, lodash_1.merge)({}, baseDeploymentJob, shared, {
354107
- script: __spreadArray(__spreadArray([], __read(connectContext), false), ["kubernetesCreateSecret", "kubernetesDeploy", "echo deployment successful 😻"], false),
354255
+ script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(connectContext), false), ["kubernetesCreateSecret", "kubernetesDeploy"], false), __read((0, sbom_1.getDependencyTrackUploadScript)(context)), false), ["echo deployment successful 😻"], false),
354108
354256
  environment: {
354109
354257
  kubernetes: kubernetesEnvironment
354110
354258
  }
354111
354259
  }), (0, lodash_1.merge)({}, baseStopJob, shared, {
354112
- script: __spreadArray(__spreadArray([], __read(connectContext), false), ["kubernetesDelete"], false),
354260
+ script: __spreadArray(__spreadArray(__spreadArray([], __read(connectContext), false), ["kubernetesDelete"], false), __read((0, sbom_1.getDependencyTrackDeleteScript)(context)), false),
354113
354261
  environment: {
354114
354262
  kubernetes: kubernetesEnvironment
354115
354263
  }
@@ -354555,6 +354703,30 @@ exports.processSecretsAsFiles = processSecretsAsFiles;
354555
354703
 
354556
354704
  /***/ }),
354557
354705
 
354706
+ /***/ 65928:
354707
+ /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
354708
+
354709
+ "use strict";
354710
+
354711
+
354712
+ exports.__esModule = true;
354713
+ exports.getDependencyTrackDeleteScript = exports.getDependencyTrackUploadScript = exports.sbomDeactivated = void 0;
354714
+ var sbom_1 = __nccwpck_require__(9927);
354715
+ var sbomDeactivated = function (context) {
354716
+ return context.componentConfig.build.type === "custom" && context.componentConfig.build.sbom === false;
354717
+ };
354718
+ exports.sbomDeactivated = sbomDeactivated;
354719
+ var getDependencyTrackUploadScript = function (context) {
354720
+ return (0, exports.sbomDeactivated)(context) ? [] : ["echo Uploading SBOM to Dependency Track", "/dtrackuploader https://dep.panter.swiss/ \"$DT_KEY_PROD\" upload \"".concat(context.fullConfig.customerName, "-").concat(context.fullConfig.appName, "/").concat(context.componentName, "\" \"").concat(context.environment.url, "\" \"").concat(sbom_1.SBOM_FILE, "\" vex.json || true")];
354721
+ };
354722
+ exports.getDependencyTrackUploadScript = getDependencyTrackUploadScript;
354723
+ var getDependencyTrackDeleteScript = function (context) {
354724
+ return (0, exports.sbomDeactivated)(context) ? [] : ["echo Disabling component in Dependency Track", "/dtrackuploader https://dep.panter.swiss/ \"$DT_KEY_PROD\" disable \"".concat(context.fullConfig.customerName, "-").concat(context.fullConfig.appName, "/").concat(context.componentName, "\" \"").concat(context.environment.url, "\" || true")];
354725
+ };
354726
+ exports.getDependencyTrackDeleteScript = getDependencyTrackDeleteScript;
354727
+
354728
+ /***/ }),
354729
+
354558
354730
  /***/ 20438:
354559
354731
  /***/ ((__unused_webpack_module, exports) => {
354560
354732
 
@@ -355560,7 +355732,6 @@ exports.__esModule = true;
355560
355732
  exports.createJobsForComponent = void 0;
355561
355733
  var lodash_1 = __nccwpck_require__(23255);
355562
355734
  var build_1 = __nccwpck_require__(73760);
355563
- var reporting_1 = __nccwpck_require__(43545);
355564
355735
  var context_1 = __nccwpck_require__(22041);
355565
355736
  var deploy_1 = __nccwpck_require__(90223);
355566
355737
  var getCommitInfo_1 = __nccwpck_require__(5923);
@@ -355585,9 +355756,8 @@ var getCustomJobs = function (context) {
355585
355756
  var createRawJobs = function (context) {
355586
355757
  var buildJobs = build_1.BUILD_TYPES[context.componentConfig.build.type].jobs(context);
355587
355758
  var deployJobs = context.componentConfig.deploy !== false ? deploy_1.DEPLOY_TYPES[context.componentConfig.deploy.type].jobs(context) : [];
355588
- var reportingJobs = (0, reporting_1.createReportingJobs)(context);
355589
355759
  var customJobs = getCustomJobs(context);
355590
- return __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(buildJobs), false), __read(deployJobs), false), __read(reportingJobs), false), __read(customJobs), false);
355760
+ return __spreadArray(__spreadArray(__spreadArray([], __read(buildJobs), false), __read(deployJobs), false), __read(customJobs), false);
355591
355761
  };
355592
355762
  var createJobsForComponent = function (config, componentName, env, trigger) {
355593
355763
  return __awaiter(void 0, void 0, void 0, function () {
@@ -355844,7 +356014,7 @@ var makeGitlabJob = function (componentName, env, _a, allJobs) {
355844
356014
  };
355845
356015
  });
355846
356016
  });
355847
- var cleanedNeeds = __spreadArray(__spreadArray(__spreadArray([], __read(needs !== null && needs !== void 0 ? needs : []), false), __read(needsOtherComponent !== null && needsOtherComponent !== void 0 ? needsOtherComponent : []), false), __read(needsFromStages !== null && needsFromStages !== void 0 ? needsFromStages : []), false);
356017
+ var cleanedNeeds = __spreadArray(__spreadArray(__spreadArray([], __read(needsFromStages !== null && needsFromStages !== void 0 ? needsFromStages : []), false), __read(needs !== null && needs !== void 0 ? needs : []), false), __read(needsOtherComponent !== null && needsOtherComponent !== void 0 ? needsOtherComponent : []), false);
355848
356018
  var gitlabNeeds = cleanedNeeds === null || cleanedNeeds === void 0 ? void 0 : cleanedNeeds.map(function (n) {
355849
356019
  var _a;
355850
356020
  return (0, lodash_1.isObject)(n) ? {
@@ -355854,6 +356024,9 @@ var makeGitlabJob = function (componentName, env, _a, allJobs) {
355854
356024
  }).sort(function (a, b) {
355855
356025
  return getJobName(a).localeCompare(getJobName(b));
355856
356026
  });
356027
+ var deduplicatedGitlabNeeds = __spreadArray([], __read(new Map(gitlabNeeds.map(function (n) {
356028
+ return [(0, lodash_1.isObject)(n) ? n.job : n, n];
356029
+ })).values()), false);
355857
356030
  var fullJobName = getFullJobName(name, componentName, envMode !== "none" ? env : undefined);
355858
356031
  var gitlabJob = removeUndefined(__assign(__assign({}, job), {
355859
356032
  tags: jobTags,
@@ -355862,7 +356035,7 @@ var makeGitlabJob = function (componentName, env, _a, allJobs) {
355862
356035
  on_stop: getFullReferencedJobName(job.environment.on_stop, componentName, env, allJobs)
355863
356036
  }) : job.environment,
355864
356037
  // sort in a predictable manner for snapshot tests
355865
- needs: gitlabNeeds,
356038
+ needs: deduplicatedGitlabNeeds,
355866
356039
  retry: defaults_1.BASE_RETRY,
355867
356040
  interruptible: true
355868
356041
  }));
@@ -356643,61 +356816,6 @@ exports.mergeWithMergingArrays = mergeWithMergingArrays;
356643
356816
 
356644
356817
  /***/ }),
356645
356818
 
356646
- /***/ 43545:
356647
- /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
356648
-
356649
- "use strict";
356650
-
356651
-
356652
- exports.__esModule = true;
356653
- exports.createReportingJobs = void 0;
356654
- var base_1 = __nccwpck_require__(89177);
356655
- var utils_1 = __nccwpck_require__(37461);
356656
- var STAGE = "verify";
356657
- var SBOM_GENERATE_JOB_NAME = "🧾 sbom";
356658
- var SBOM_FILE = "__sbom.json";
356659
- var createSbomGenerateJob = function (context) {
356660
- var _a, _b, _c, _d, _e;
356661
- var buildConfig = context.componentConfig.build;
356662
- var defaultImage = "aquasec/trivy:0.38.3";
356663
- var defaultScript = ["trivy fs --quiet --format cyclonedx --output \"".concat(SBOM_FILE, "\" ").concat(((_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.componentIsInWorkspace) ? "." : context.componentConfig.dir)];
356664
- var image = buildConfig.type === "custom" && buildConfig.sbom !== false ? (_c = (_b = buildConfig.sbom) === null || _b === void 0 ? void 0 : _b.jobImage) !== null && _c !== void 0 ? _c : defaultImage : defaultImage;
356665
- var script = buildConfig.type === "custom" && buildConfig.sbom !== false ? (_e = (0, utils_1.ensureArray)((_d = buildConfig.sbom) === null || _d === void 0 ? void 0 : _d.command)) !== null && _e !== void 0 ? _e : defaultScript : defaultScript;
356666
- return {
356667
- name: SBOM_GENERATE_JOB_NAME,
356668
- stage: STAGE,
356669
- needs: context.componentConfig.deploy !== false ? [base_1.DEPLOY_JOB_NAME] : [],
356670
- envMode: "jobPerEnv",
356671
- variables: {},
356672
- cache: undefined,
356673
- image: image,
356674
- script: script,
356675
- allow_failure: true,
356676
- artifacts: {
356677
- paths: [SBOM_FILE]
356678
- }
356679
- };
356680
- };
356681
- var createSbomUploadJob = function (context) {
356682
- return {
356683
- name: "🧾 sbom upload",
356684
- stage: STAGE,
356685
- needs: [SBOM_GENERATE_JOB_NAME],
356686
- envMode: "jobPerEnv",
356687
- variables: {},
356688
- cache: undefined,
356689
- image: "git.panter.ch:5001/open-source/dependency-track-uploader:dtrackuploader-v0.2.1",
356690
- script: ["/dtrackuploader https://dep.panter.swiss/ \"$DT_KEY_PROD\" upload \"".concat(context.fullConfig.customerName, "-").concat(context.fullConfig.appName, "/").concat(context.componentName, "\" \"").concat(context.environment.shortName, "\" \"").concat(SBOM_FILE, "\" vex.json")],
356691
- allow_failure: true
356692
- };
356693
- };
356694
- var createReportingJobs = function (context) {
356695
- return context.componentConfig.build.type === "custom" && context.componentConfig.build.sbom === false ? [] : [createSbomGenerateJob(context), createSbomUploadJob(context)];
356696
- };
356697
- exports.createReportingJobs = createReportingJobs;
356698
-
356699
- /***/ }),
356700
-
356701
356819
  /***/ 15058:
356702
356820
  /***/ ((module) => {
356703
356821