@datadog/datadog-ci-plugin-terraform 5.21.0 → 5.21.2

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/dist/bundle.js CHANGED
@@ -10914,7 +10914,7 @@ var require_glob = /* @__PURE__ */ __commonJSMin(((exports) => {
10914
10914
  var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10915
10915
  module.exports = {
10916
10916
  "name": "@datadog/datadog-ci-base",
10917
- "version": "5.21.0",
10917
+ "version": "5.21.2",
10918
10918
  "description": "Base package for Datadog CI",
10919
10919
  "license": "Apache-2.0",
10920
10920
  "keywords": ["datadog", "datadog-ci"],
@@ -63877,7 +63877,7 @@ var require_request = /* @__PURE__ */ __commonJSMin(((exports) => {
63877
63877
  const isRequestError = (error) => error instanceof RequestError || typeof error === "object" && !!error && error.isRequestError === true;
63878
63878
  exports.isRequestError = isRequestError;
63879
63879
  const dispatcherCache = /* @__PURE__ */ new Map();
63880
- const getProxyDispatcher = (proxyUrl) => {
63880
+ const getProxyDispatcher = (proxyUrl = "") => {
63881
63881
  if (!proxyUrl) return new undici_1.EnvHttpProxyAgent();
63882
63882
  let dispatcher = dispatcherCache.get(proxyUrl);
63883
63883
  if (!dispatcher) {
@@ -64824,7 +64824,11 @@ var require_ci = /* @__PURE__ */ __commonJSMin(((exports) => {
64824
64824
  return { levels: unique.sort((a, b) => exports.LEVEL_TO_NUMBER[a] - exports.LEVEL_TO_NUMBER[b]) };
64825
64825
  };
64826
64826
  exports.parseLevels = parseLevels;
64827
- exports.githubWellKnownDiagnosticDirsUnix = ["/home/runner/actions-runner/_diag", "/opt/actions-runner/_diag"];
64827
+ exports.githubWellKnownDiagnosticDirsUnix = [
64828
+ "/home/runner/_diag",
64829
+ "/home/runner/actions-runner/_diag",
64830
+ "/opt/actions-runner/_diag"
64831
+ ];
64828
64832
  exports.githubWellKnownDiagnosticDirsWin = ["C:/actions-runner/_diag"];
64829
64833
  exports.githubWellKnownDiagnosticDirPatternsUnix = ["/home/runner/actions-runner/*/_diag", "/home/runner/actions-runner/*/*/_diag"];
64830
64834
  exports.githubWellKnownDiagnosticDirPatternsWin = ["C:/actions-runner/*/_diag", "C:/actions-runner/*/*/_diag"];
@@ -64865,6 +64869,11 @@ var require_ci = /* @__PURE__ */ __commonJSMin(((exports) => {
64865
64869
  dirs.push(`${runnerRoot}/actions-runner/*/*/_diag`);
64866
64870
  dirs.push(upath_1.default.join(runnerRoot, "actions-runner", "_diag"));
64867
64871
  }
64872
+ const home = process.env.HOME;
64873
+ if (home) {
64874
+ dirs.push(upath_1.default.join(home, "_diag"));
64875
+ dirs.push(upath_1.default.join(home, "actions-runner", "_diag"));
64876
+ }
64868
64877
  return uniq(dirs.filter(Boolean));
64869
64878
  };
64870
64879
  /**
@@ -76673,7 +76682,8 @@ var require_apikey = /* @__PURE__ */ __commonJSMin(((exports) => {
76673
76682
  headers: { "DD-API-KEY": this.apiKey },
76674
76683
  method: "GET",
76675
76684
  baseURL: `https://api.${this.datadogSite}`,
76676
- url: (0, datadog_route_1.datadogRoute)("/api/v1/validate")
76685
+ url: (0, datadog_route_1.datadogRoute)("/api/v1/validate"),
76686
+ dispatcher: (0, request_1.getProxyDispatcher)()
76677
76687
  })).data.valid;
76678
76688
  } catch (error) {
76679
76689
  if ((0, request_1.isRequestError)(error) && error.response && error.response.status === 403) return false;