renovate 44.151.3 → 44.151.5

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.
Files changed (61) hide show
  1. package/dist/config/options/index.js +70 -10
  2. package/dist/config/options/index.js.map +1 -1
  3. package/dist/config/options/scopes.js +49 -0
  4. package/dist/config/options/scopes.js.map +1 -0
  5. package/dist/config/presets/index.js +1 -1
  6. package/dist/config/types.d.ts +27 -1
  7. package/dist/config/types.js +17 -1
  8. package/dist/config/types.js.map +1 -1
  9. package/dist/config/validation.js +24 -23
  10. package/dist/config/validation.js.map +1 -1
  11. package/dist/modules/datasource/artifactory/index.js +1 -1
  12. package/dist/modules/datasource/aws-eks-addon/index.js +1 -1
  13. package/dist/modules/datasource/aws-machine-image/index.js +1 -1
  14. package/dist/modules/datasource/bazel/index.js +1 -1
  15. package/dist/modules/datasource/bitrise/index.js +1 -1
  16. package/dist/modules/datasource/conan/index.js +1 -1
  17. package/dist/modules/datasource/conda/index.js +1 -1
  18. package/dist/modules/datasource/crate/index.js +1 -1
  19. package/dist/modules/datasource/deno/index.js +1 -1
  20. package/dist/modules/datasource/docker/index.js +1 -1
  21. package/dist/modules/datasource/elm-package/index.js +1 -1
  22. package/dist/modules/datasource/endoflife-date/index.js +1 -1
  23. package/dist/modules/datasource/galaxy-collection/index.js +1 -1
  24. package/dist/modules/datasource/gitea-tags/base.js +1 -1
  25. package/dist/modules/datasource/gitlab-packages/index.js +1 -1
  26. package/dist/modules/datasource/gitlab-releases/index.js +1 -1
  27. package/dist/modules/datasource/gitlab-tags/index.js +1 -1
  28. package/dist/modules/datasource/glasskube-packages/index.js +1 -1
  29. package/dist/modules/datasource/go/index.js +1 -1
  30. package/dist/modules/datasource/go/releases-goproxy.js +1 -1
  31. package/dist/modules/datasource/go/timestamp-cache.js +1 -1
  32. package/dist/modules/datasource/helm/index.js +1 -1
  33. package/dist/modules/datasource/hermit/index.js +1 -1
  34. package/dist/modules/datasource/hex/index.js +1 -1
  35. package/dist/modules/datasource/index.js +1 -1
  36. package/dist/modules/datasource/jsr/index.js +1 -1
  37. package/dist/modules/datasource/maven/index.js +1 -1
  38. package/dist/modules/datasource/nuget/v3.js +1 -1
  39. package/dist/modules/datasource/orb/index.js +1 -1
  40. package/dist/modules/datasource/packagist/index.js +1 -1
  41. package/dist/modules/datasource/repology/index.js +1 -1
  42. package/dist/modules/datasource/rubygems/index.js +1 -1
  43. package/dist/modules/datasource/rubygems/metadata-cache.js +1 -1
  44. package/dist/modules/datasource/sbt-package/index.js +1 -1
  45. package/dist/modules/datasource/terraform-module/index.js +1 -1
  46. package/dist/modules/datasource/terraform-provider/index.js +1 -1
  47. package/dist/modules/manager/github-actions/extract.js +1 -1
  48. package/dist/modules/platform/gitea/pr-cache.js +7 -7
  49. package/dist/modules/platform/gitea/pr-cache.js.map +1 -1
  50. package/dist/util/cache/package/index.js +1 -1
  51. package/dist/util/exec/containerbase.js +7 -1
  52. package/dist/util/exec/containerbase.js.map +1 -1
  53. package/dist/util/exec/index.js +1 -1
  54. package/dist/util/http/cache/package-http-cache-provider.js +1 -1
  55. package/dist/util/jsonata.js +1 -1
  56. package/dist/util/merge-confidence/index.js +1 -1
  57. package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js +1 -1
  58. package/dist/workers/repository/update/pr/changelog/release-notes.js +1 -1
  59. package/dist/workers/repository/update/pr/changelog/source.js +1 -1
  60. package/package.json +1 -1
  61. package/renovate-schema.json +4647 -4835
@@ -1,11 +1,56 @@
1
1
  import { PLATFORM_HOST_TYPES } from "../../constants/platforms.js";
2
2
  import { managerDefaultConfigs } from "../../manager-default-configs.generated.js";
3
3
  import { AllManagersListLiteral } from "../../manager-list.generated.js";
4
+ import { getSupportedToolNames } from "../../util/exec/containerbase.js";
5
+ import { additionalConstraintDefinitions, toolDefinitionDocumentation } from "../../util/exec/types.js";
4
6
  import { AllVersioningsListLiteral } from "../../versioning-list.generated.js";
5
7
  import { supportedDatasources } from "../presets/internal/merge-confidence.preset.js";
6
- import { UpdateTypesOptions } from "../types.js";
8
+ import { UpdateTypesOptions, allowedStatusCheckStrings, allowedStatusCheckWhenValues } from "../types.js";
7
9
  import { isArray, isObject } from "@sindresorhus/is";
8
10
  //#region lib/config/options/index.ts
11
+ /**
12
+ * The constraints which a Containerbase tool defines, as the keys of an object option.
13
+ */
14
+ function toolConstraintProperties() {
15
+ const properties = {};
16
+ for (const toolName of getSupportedToolNames()) {
17
+ const description = toolDefinitionDocumentation.find((t) => t.name === toolName)?.description ?? "";
18
+ const base = `A constraint for the \`${toolName}\` Containerbase tool`;
19
+ properties[toolName] = {
20
+ type: "string",
21
+ description: description ? `${base}. ${description}` : base
22
+ };
23
+ }
24
+ return properties;
25
+ }
26
+ /**
27
+ * The constraints which aren't a Containerbase tool, as the keys of an object option.
28
+ */
29
+ function additionalConstraintProperties() {
30
+ const properties = {};
31
+ for (const { name, description } of additionalConstraintDefinitions) properties[name] = {
32
+ type: "string",
33
+ /* v8 ignore next -- every current `additionalConstraintDefinitions` entry has a description, but the type allows one to be added without one */
34
+ description: description ?? `A constraint for \`${name}\``
35
+ };
36
+ return properties;
37
+ }
38
+ /**
39
+ * The Containerbase tools which can be installed, as the keys of an object option.
40
+ */
41
+ function installToolProperties() {
42
+ const properties = {};
43
+ for (const toolName of getSupportedToolNames()) {
44
+ const description = toolDefinitionDocumentation.find((t) => t.name === toolName)?.description ?? "";
45
+ const base = `A constraint for the \`${toolName}\` Containerbase tool`;
46
+ properties[toolName] = {
47
+ type: "object",
48
+ description: description ? `${base}. ${description}` : base,
49
+ additionalProperties: false
50
+ };
51
+ }
52
+ return properties;
53
+ }
9
54
  const options = [
10
55
  {
11
56
  name: "mode",
@@ -230,11 +275,8 @@ const options = [
230
275
  type: "object",
231
276
  parents: ["postUpgradeTasks"],
232
277
  default: {},
233
- additionalProperties: {
234
- type: "object",
235
- properties: {},
236
- additionalProperties: false
237
- },
278
+ properties: installToolProperties(),
279
+ additionalProperties: false,
238
280
  mergeable: false,
239
281
  freeChoice: true,
240
282
  cli: false
@@ -375,6 +417,8 @@ const options = [
375
417
  type: "object",
376
418
  mergeable: true,
377
419
  advancedUse: true,
420
+ properties: Object.fromEntries(allowedStatusCheckStrings.map((statusCheck) => [statusCheck, { type: ["string", "null"] }])),
421
+ additionalProperties: false,
378
422
  default: {
379
423
  artifactError: "renovate/artifacts",
380
424
  configValidation: "renovate/config-validation",
@@ -388,6 +432,11 @@ const options = [
388
432
  type: "object",
389
433
  mergeable: true,
390
434
  advancedUse: true,
435
+ properties: Object.fromEntries(allowedStatusCheckStrings.map((statusCheck) => [statusCheck, {
436
+ type: "string",
437
+ enum: [...allowedStatusCheckWhenValues]
438
+ }])),
439
+ additionalProperties: false,
391
440
  default: {
392
441
  artifactError: "failed",
393
442
  configValidation: "always",
@@ -644,13 +693,15 @@ const options = [
644
693
  description: "Custom environment variables for child processes and sidecar Docker containers.",
645
694
  globalOnly: true,
646
695
  type: "object",
647
- default: {}
696
+ default: {},
697
+ additionalProperties: { type: "string" }
648
698
  },
649
699
  {
650
700
  name: "env",
651
701
  description: "Environment variables that Renovate uses when executing package manager commands.",
652
702
  type: "object",
653
703
  default: {},
704
+ additionalProperties: { type: "string" },
654
705
  requiresCheckAtTrustBoundary: true
655
706
  },
656
707
  {
@@ -660,6 +711,7 @@ const options = [
660
711
  experimental: true,
661
712
  experimentalIssues: [23286],
662
713
  default: {},
714
+ additionalProperties: { type: "object" },
663
715
  mergeable: true
664
716
  },
665
717
  {
@@ -976,7 +1028,8 @@ const options = [
976
1028
  description: "An object containing configuration encrypted with project key.",
977
1029
  stage: "repository",
978
1030
  type: "object",
979
- default: null
1031
+ default: null,
1032
+ additionalProperties: { type: "string" }
980
1033
  },
981
1034
  {
982
1035
  name: "timezone",
@@ -2755,7 +2808,11 @@ const options = [
2755
2808
  "poetry"
2756
2809
  ],
2757
2810
  freeChoice: true,
2758
- additionalProperties: { type: "string" }
2811
+ properties: {
2812
+ ...toolConstraintProperties(),
2813
+ ...additionalConstraintProperties()
2814
+ },
2815
+ additionalProperties: false
2759
2816
  },
2760
2817
  {
2761
2818
  name: "hostRules",
@@ -2913,6 +2970,7 @@ const options = [
2913
2970
  name: "headers",
2914
2971
  description: "Put fields to be forwarded to the HTTP request headers in the headers config option.",
2915
2972
  type: "object",
2973
+ additionalProperties: { type: "string" },
2916
2974
  parents: ["hostRules"],
2917
2975
  cli: false,
2918
2976
  env: false,
@@ -2975,6 +3033,7 @@ const options = [
2975
3033
  type: "object",
2976
3034
  stage: "repository",
2977
3035
  default: {},
3036
+ additionalProperties: { type: "number" },
2978
3037
  globalOnly: true,
2979
3038
  experimental: true,
2980
3039
  advancedUse: true
@@ -3542,7 +3601,8 @@ const options = [
3542
3601
  cli: false,
3543
3602
  env: false,
3544
3603
  freeChoice: true,
3545
- additionalProperties: { type: "string" }
3604
+ properties: additionalConstraintProperties(),
3605
+ additionalProperties: false
3546
3606
  }
3547
3607
  ];
3548
3608
  function getOptions() {