File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,6 +108,11 @@ jobs:
108108 },
109109 };
110110
111+ const defaultLinterVariables = {
112+ KUBERNETES_KUBECONFORM_OPTIONS:
113+ "-schema-location default -schema-location https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json",
114+ };
115+
111116 function parseEnvironmentLines(serializedEnvironment) {
112117 const environment = new Map();
113118
@@ -156,7 +161,10 @@ jobs:
156161 }
157162
158163 const customEnvironment = parseEnvironmentLines(process.env.LINTER_ENV ?? "");
159- const defaultEnvironment = getToolchainEnvironment(process.env.LINTER_TOOLCHAIN);
164+ const defaultEnvironment = {
165+ ...defaultLinterVariables,
166+ ...getToolchainEnvironment(process.env.LINTER_TOOLCHAIN),
167+ };
160168 const mergedEnvironment = mergeEnvironment(customEnvironment, defaultEnvironment);
161169
162170 for (const [key, value] of mergedEnvironment) {
You can’t perform that action at this time.
0 commit comments