@backstage/plugin-scaffolder-backend 1.19.0 → 1.19.2-next.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/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @backstage/plugin-scaffolder-backend
2
2
 
3
+ ## 1.19.2-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - aff34fcf23: Fix issue with Circular JSON dependencies in templating
8
+ - 48667b4d3a: Fix creating env secret in github:environment:create action
9
+ - Updated dependencies
10
+ - @backstage/backend-common@0.20.0-next.0
11
+ - @backstage/backend-tasks@0.5.13-next.0
12
+ - @backstage/integration@1.8.0-next.0
13
+ - @backstage/plugin-auth-node@0.4.2-next.0
14
+ - @backstage/plugin-catalog-backend@1.15.1-next.0
15
+ - @backstage/plugin-catalog-backend-module-scaffolder-entity-model@0.1.5-next.0
16
+ - @backstage/plugin-catalog-node@1.5.1-next.0
17
+ - @backstage/plugin-permission-node@0.7.19-next.0
18
+ - @backstage/plugin-scaffolder-node@0.2.9-next.0
19
+ - @backstage/backend-plugin-api@0.6.8-next.0
20
+ - @backstage/catalog-client@1.4.6
21
+ - @backstage/catalog-model@1.4.3
22
+ - @backstage/config@1.1.1
23
+ - @backstage/errors@1.2.3
24
+ - @backstage/types@1.1.1
25
+ - @backstage/plugin-catalog-common@1.0.18
26
+ - @backstage/plugin-permission-common@0.7.10
27
+ - @backstage/plugin-scaffolder-common@1.4.3
28
+
3
29
  ## 1.19.0
4
30
 
5
31
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend",
3
- "version": "1.19.0",
3
+ "version": "1.19.2-next.0",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/dist/alpha.cjs.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var alpha = require('@backstage/plugin-scaffolder-common/alpha');
6
6
  var pluginPermissionNode = require('@backstage/plugin-permission-node');
7
- var router = require('./cjs/router-6b5fa0be.cjs.js');
7
+ var router = require('./cjs/router-1200925e.cjs.js');
8
8
  var backendPluginApi = require('@backstage/backend-plugin-api');
9
9
  var backendCommon = require('@backstage/backend-common');
10
10
  var integration = require('@backstage/integration');
@@ -3120,9 +3120,9 @@ function createGithubEnvironmentAction(options) {
3120
3120
  });
3121
3121
  }
3122
3122
  if (secrets) {
3123
- const publicKeyResponse = await client.rest.actions.getRepoPublicKey({
3124
- owner,
3125
- repo
3123
+ const publicKeyResponse = await client.rest.actions.getEnvironmentPublicKey({
3124
+ repository_id: repository.data.id,
3125
+ environment_name: name
3126
3126
  });
3127
3127
  await Sodium__default["default"].ready;
3128
3128
  const binaryKey = Sodium__default["default"].from_base64(
@@ -7179,17 +7179,20 @@ class NunjucksWorkflowRunner {
7179
7179
  ([key, value]) => ({
7180
7180
  each: { key, value }
7181
7181
  })
7182
- ) : [{}]).map((i) => ({
7183
- ...i,
7184
- // Secrets are only passed when templating the input to actions for security reasons
7185
- input: step.input ? this.render(
7186
- step.input,
7187
- { ...context, ...i, ...task },
7188
- renderTemplate
7189
- ) : {}
7190
- }));
7182
+ ) : [{}]).map((i) => {
7183
+ var _a2;
7184
+ return {
7185
+ ...i,
7186
+ // Secrets are only passed when templating the input to actions for security reasons
7187
+ input: step.input ? this.render(
7188
+ step.input,
7189
+ { ...context, secrets: (_a2 = task.secrets) != null ? _a2 : {}, ...i },
7190
+ renderTemplate
7191
+ ) : {}
7192
+ };
7193
+ });
7191
7194
  for (const iteration of iterations) {
7192
- const actionId = action.id + (iteration.each ? `[${iteration.each.key}]` : "");
7195
+ const actionId = `${action.id}${iteration.each ? `[${iteration.each.key}]` : ""}`;
7193
7196
  if ((_d = action.schema) == null ? void 0 : _d.input) {
7194
7197
  const validateResult = jsonschema.validate(
7195
7198
  iteration.input,
@@ -8185,4 +8188,4 @@ exports.createRouter = createRouter;
8185
8188
  exports.createWaitAction = createWaitAction;
8186
8189
  exports.scaffolderActionRules = scaffolderActionRules;
8187
8190
  exports.scaffolderTemplateRules = scaffolderTemplateRules;
8188
- //# sourceMappingURL=router-6b5fa0be.cjs.js.map
8191
+ //# sourceMappingURL=router-1200925e.cjs.js.map