@xcelera/cli 2.4.0 → 3.0.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/dist/action.js CHANGED
@@ -57,7 +57,8 @@ function requireUtils$1 () {
57
57
  // We use any as a valid input type
58
58
  /* eslint-disable @typescript-eslint/no-explicit-any */
59
59
  Object.defineProperty(utils$1, "__esModule", { value: true });
60
- utils$1.toCommandProperties = utils$1.toCommandValue = void 0;
60
+ utils$1.toCommandValue = toCommandValue;
61
+ utils$1.toCommandProperties = toCommandProperties;
61
62
  /**
62
63
  * Sanitizes an input into a string so it can be passed into issueCommand safely
63
64
  * @param input input to sanitize into a string
@@ -71,7 +72,6 @@ function requireUtils$1 () {
71
72
  }
72
73
  return JSON.stringify(input);
73
74
  }
74
- utils$1.toCommandValue = toCommandValue;
75
75
  /**
76
76
  *
77
77
  * @param annotationProperties
@@ -91,7 +91,6 @@ function requireUtils$1 () {
91
91
  endColumn: annotationProperties.endColumn
92
92
  };
93
93
  }
94
- utils$1.toCommandProperties = toCommandProperties;
95
94
 
96
95
  return utils$1;
97
96
  }
@@ -117,36 +116,68 @@ function requireCommand () {
117
116
  }) : function(o, v) {
118
117
  o["default"] = v;
119
118
  });
120
- var __importStar = (command && command.__importStar) || function (mod) {
121
- if (mod && mod.__esModule) return mod;
122
- var result = {};
123
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
124
- __setModuleDefault(result, mod);
125
- return result;
126
- };
119
+ var __importStar = (command && command.__importStar) || (function () {
120
+ var ownKeys = function(o) {
121
+ ownKeys = Object.getOwnPropertyNames || function (o) {
122
+ var ar = [];
123
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
124
+ return ar;
125
+ };
126
+ return ownKeys(o);
127
+ };
128
+ return function (mod) {
129
+ if (mod && mod.__esModule) return mod;
130
+ var result = {};
131
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
132
+ __setModuleDefault(result, mod);
133
+ return result;
134
+ };
135
+ })();
127
136
  Object.defineProperty(command, "__esModule", { value: true });
128
- command.issue = command.issueCommand = void 0;
137
+ command.issueCommand = issueCommand;
138
+ command.issue = issue;
129
139
  const os = __importStar(require$$0);
130
140
  const utils_1 = requireUtils$1();
131
141
  /**
132
- * Commands
142
+ * Issues a command to the GitHub Actions runner
143
+ *
144
+ * @param command - The command name to issue
145
+ * @param properties - Additional properties for the command (key-value pairs)
146
+ * @param message - The message to include with the command
147
+ * @remarks
148
+ * This function outputs a specially formatted string to stdout that the Actions
149
+ * runner interprets as a command. These commands can control workflow behavior,
150
+ * set outputs, create annotations, mask values, and more.
133
151
  *
134
152
  * Command Format:
135
153
  * ::name key=value,key=value::message
136
154
  *
137
- * Examples:
138
- * ::warning::This is the message
139
- * ::set-env name=MY_VAR::some value
155
+ * @example
156
+ * ```typescript
157
+ * // Issue a warning annotation
158
+ * issueCommand('warning', {}, 'This is a warning message');
159
+ * // Output: ::warning::This is a warning message
160
+ *
161
+ * // Set an environment variable
162
+ * issueCommand('set-env', { name: 'MY_VAR' }, 'some value');
163
+ * // Output: ::set-env name=MY_VAR::some value
164
+ *
165
+ * // Add a secret mask
166
+ * issueCommand('add-mask', {}, 'secretValue123');
167
+ * // Output: ::add-mask::secretValue123
168
+ * ```
169
+ *
170
+ * @internal
171
+ * This is an internal utility function that powers the public API functions
172
+ * such as setSecret, warning, error, and exportVariable.
140
173
  */
141
174
  function issueCommand(command, properties, message) {
142
175
  const cmd = new Command(command, properties, message);
143
176
  process.stdout.write(cmd.toString() + os.EOL);
144
177
  }
145
- command.issueCommand = issueCommand;
146
178
  function issue(name, message = '') {
147
179
  issueCommand(name, {}, message);
148
180
  }
149
- command.issue = issue;
150
181
  const CMD_STRING = '::';
151
182
  class Command {
152
183
  constructor(command, properties, message) {
@@ -223,15 +254,26 @@ function requireFileCommand () {
223
254
  }) : function(o, v) {
224
255
  o["default"] = v;
225
256
  });
226
- var __importStar = (fileCommand && fileCommand.__importStar) || function (mod) {
227
- if (mod && mod.__esModule) return mod;
228
- var result = {};
229
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
230
- __setModuleDefault(result, mod);
231
- return result;
232
- };
257
+ var __importStar = (fileCommand && fileCommand.__importStar) || (function () {
258
+ var ownKeys = function(o) {
259
+ ownKeys = Object.getOwnPropertyNames || function (o) {
260
+ var ar = [];
261
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
262
+ return ar;
263
+ };
264
+ return ownKeys(o);
265
+ };
266
+ return function (mod) {
267
+ if (mod && mod.__esModule) return mod;
268
+ var result = {};
269
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
270
+ __setModuleDefault(result, mod);
271
+ return result;
272
+ };
273
+ })();
233
274
  Object.defineProperty(fileCommand, "__esModule", { value: true });
234
- fileCommand.prepareKeyValueMessage = fileCommand.issueFileCommand = void 0;
275
+ fileCommand.issueFileCommand = issueFileCommand;
276
+ fileCommand.prepareKeyValueMessage = prepareKeyValueMessage;
235
277
  // We use any as a valid input type
236
278
  /* eslint-disable @typescript-eslint/no-explicit-any */
237
279
  const crypto = __importStar(require$$0$1);
@@ -250,7 +292,6 @@ function requireFileCommand () {
250
292
  encoding: 'utf8'
251
293
  });
252
294
  }
253
- fileCommand.issueFileCommand = issueFileCommand;
254
295
  function prepareKeyValueMessage(key, value) {
255
296
  const delimiter = `ghadelimiter_${crypto.randomUUID()}`;
256
297
  const convertedValue = (0, utils_1.toCommandValue)(value);
@@ -265,7 +306,6 @@ function requireFileCommand () {
265
306
  }
266
307
  return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`;
267
308
  }
268
- fileCommand.prepareKeyValueMessage = prepareKeyValueMessage;
269
309
 
270
310
  return fileCommand;
271
311
  }
@@ -282,7 +322,8 @@ function requireProxy () {
282
322
  if (hasRequiredProxy) return proxy;
283
323
  hasRequiredProxy = 1;
284
324
  Object.defineProperty(proxy, "__esModule", { value: true });
285
- proxy.checkBypass = proxy.getProxyUrl = void 0;
325
+ proxy.getProxyUrl = getProxyUrl;
326
+ proxy.checkBypass = checkBypass;
286
327
  function getProxyUrl(reqUrl) {
287
328
  const usingSsl = reqUrl.protocol === 'https:';
288
329
  if (checkBypass(reqUrl)) {
@@ -309,7 +350,6 @@ function requireProxy () {
309
350
  return undefined;
310
351
  }
311
352
  }
312
- proxy.getProxyUrl = getProxyUrl;
313
353
  function checkBypass(reqUrl) {
314
354
  if (!reqUrl.hostname) {
315
355
  return false;
@@ -353,7 +393,6 @@ function requireProxy () {
353
393
  }
354
394
  return false;
355
395
  }
356
- proxy.checkBypass = checkBypass;
357
396
  function isLoopbackAddress(host) {
358
397
  const hostLower = host.toLowerCase();
359
398
  return (hostLower === 'localhost' ||
@@ -24382,13 +24421,23 @@ function requireLib () {
24382
24421
  }) : function(o, v) {
24383
24422
  o["default"] = v;
24384
24423
  });
24385
- var __importStar = (lib && lib.__importStar) || function (mod) {
24386
- if (mod && mod.__esModule) return mod;
24387
- var result = {};
24388
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24389
- __setModuleDefault(result, mod);
24390
- return result;
24391
- };
24424
+ var __importStar = (lib && lib.__importStar) || (function () {
24425
+ var ownKeys = function(o) {
24426
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24427
+ var ar = [];
24428
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24429
+ return ar;
24430
+ };
24431
+ return ownKeys(o);
24432
+ };
24433
+ return function (mod) {
24434
+ if (mod && mod.__esModule) return mod;
24435
+ var result = {};
24436
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
24437
+ __setModuleDefault(result, mod);
24438
+ return result;
24439
+ };
24440
+ })();
24392
24441
  var __awaiter = (lib && lib.__awaiter) || function (thisArg, _arguments, P, generator) {
24393
24442
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
24394
24443
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -24399,7 +24448,9 @@ function requireLib () {
24399
24448
  });
24400
24449
  };
24401
24450
  Object.defineProperty(lib, "__esModule", { value: true });
24402
- lib.HttpClient = lib.isHttps = lib.HttpClientResponse = lib.HttpClientError = lib.getProxyUrl = lib.MediaTypes = lib.Headers = lib.HttpCodes = void 0;
24451
+ lib.HttpClient = lib.HttpClientResponse = lib.HttpClientError = lib.MediaTypes = lib.Headers = lib.HttpCodes = void 0;
24452
+ lib.getProxyUrl = getProxyUrl;
24453
+ lib.isHttps = isHttps;
24403
24454
  const http = __importStar(require$$2);
24404
24455
  const https = __importStar(require$$3);
24405
24456
  const pm = __importStar(requireProxy());
@@ -24452,7 +24503,6 @@ function requireLib () {
24452
24503
  const proxyUrl = pm.getProxyUrl(new URL(serverUrl));
24453
24504
  return proxyUrl ? proxyUrl.href : '';
24454
24505
  }
24455
- lib.getProxyUrl = getProxyUrl;
24456
24506
  const HttpRedirectCodes = [
24457
24507
  HttpCodes.MovedPermanently,
24458
24508
  HttpCodes.ResourceMoved,
@@ -24513,7 +24563,6 @@ function requireLib () {
24513
24563
  const parsedUrl = new URL(requestUrl);
24514
24564
  return parsedUrl.protocol === 'https:';
24515
24565
  }
24516
- lib.isHttps = isHttps;
24517
24566
  class HttpClient {
24518
24567
  constructor(userAgent, handlers, requestOptions) {
24519
24568
  this._ignoreSslError = false;
@@ -24524,7 +24573,7 @@ function requireLib () {
24524
24573
  this._maxRetries = 1;
24525
24574
  this._keepAlive = false;
24526
24575
  this._disposed = false;
24527
- this.userAgent = userAgent;
24576
+ this.userAgent = this._getUserAgentWithOrchestrationId(userAgent);
24528
24577
  this.handlers = handlers || [];
24529
24578
  this.requestOptions = requestOptions;
24530
24579
  if (requestOptions) {
@@ -24596,36 +24645,39 @@ function requireLib () {
24596
24645
  * Gets a typed object from an endpoint
24597
24646
  * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
24598
24647
  */
24599
- getJson(requestUrl, additionalHeaders = {}) {
24600
- return __awaiter(this, void 0, void 0, function* () {
24648
+ getJson(requestUrl_1) {
24649
+ return __awaiter(this, arguments, void 0, function* (requestUrl, additionalHeaders = {}) {
24601
24650
  additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
24602
24651
  const res = yield this.get(requestUrl, additionalHeaders);
24603
24652
  return this._processResponse(res, this.requestOptions);
24604
24653
  });
24605
24654
  }
24606
- postJson(requestUrl, obj, additionalHeaders = {}) {
24607
- return __awaiter(this, void 0, void 0, function* () {
24655
+ postJson(requestUrl_1, obj_1) {
24656
+ return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
24608
24657
  const data = JSON.stringify(obj, null, 2);
24609
24658
  additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
24610
- additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
24659
+ additionalHeaders[Headers.ContentType] =
24660
+ this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson);
24611
24661
  const res = yield this.post(requestUrl, data, additionalHeaders);
24612
24662
  return this._processResponse(res, this.requestOptions);
24613
24663
  });
24614
24664
  }
24615
- putJson(requestUrl, obj, additionalHeaders = {}) {
24616
- return __awaiter(this, void 0, void 0, function* () {
24665
+ putJson(requestUrl_1, obj_1) {
24666
+ return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
24617
24667
  const data = JSON.stringify(obj, null, 2);
24618
24668
  additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
24619
- additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
24669
+ additionalHeaders[Headers.ContentType] =
24670
+ this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson);
24620
24671
  const res = yield this.put(requestUrl, data, additionalHeaders);
24621
24672
  return this._processResponse(res, this.requestOptions);
24622
24673
  });
24623
24674
  }
24624
- patchJson(requestUrl, obj, additionalHeaders = {}) {
24625
- return __awaiter(this, void 0, void 0, function* () {
24675
+ patchJson(requestUrl_1, obj_1) {
24676
+ return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
24626
24677
  const data = JSON.stringify(obj, null, 2);
24627
24678
  additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
24628
- additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
24679
+ additionalHeaders[Headers.ContentType] =
24680
+ this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson);
24629
24681
  const res = yield this.patch(requestUrl, data, additionalHeaders);
24630
24682
  return this._processResponse(res, this.requestOptions);
24631
24683
  });
@@ -24854,12 +24906,73 @@ function requireLib () {
24854
24906
  }
24855
24907
  return lowercaseKeys(headers || {});
24856
24908
  }
24909
+ /**
24910
+ * Gets an existing header value or returns a default.
24911
+ * Handles converting number header values to strings since HTTP headers must be strings.
24912
+ * Note: This returns string | string[] since some headers can have multiple values.
24913
+ * For headers that must always be a single string (like Content-Type), use the
24914
+ * specialized _getExistingOrDefaultContentTypeHeader method instead.
24915
+ */
24857
24916
  _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
24858
24917
  let clientHeader;
24859
24918
  if (this.requestOptions && this.requestOptions.headers) {
24860
- clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
24919
+ const headerValue = lowercaseKeys(this.requestOptions.headers)[header];
24920
+ if (headerValue) {
24921
+ clientHeader =
24922
+ typeof headerValue === 'number' ? headerValue.toString() : headerValue;
24923
+ }
24924
+ }
24925
+ const additionalValue = additionalHeaders[header];
24926
+ if (additionalValue !== undefined) {
24927
+ return typeof additionalValue === 'number'
24928
+ ? additionalValue.toString()
24929
+ : additionalValue;
24930
+ }
24931
+ if (clientHeader !== undefined) {
24932
+ return clientHeader;
24933
+ }
24934
+ return _default;
24935
+ }
24936
+ /**
24937
+ * Specialized version of _getExistingOrDefaultHeader for Content-Type header.
24938
+ * Always returns a single string (not an array) since Content-Type should be a single value.
24939
+ * Converts arrays to comma-separated strings and numbers to strings to ensure type safety.
24940
+ * This was split from _getExistingOrDefaultHeader to provide stricter typing for callers
24941
+ * that assign the result to places expecting a string (e.g., additionalHeaders[Headers.ContentType]).
24942
+ */
24943
+ _getExistingOrDefaultContentTypeHeader(additionalHeaders, _default) {
24944
+ let clientHeader;
24945
+ if (this.requestOptions && this.requestOptions.headers) {
24946
+ const headerValue = lowercaseKeys(this.requestOptions.headers)[Headers.ContentType];
24947
+ if (headerValue) {
24948
+ if (typeof headerValue === 'number') {
24949
+ clientHeader = String(headerValue);
24950
+ }
24951
+ else if (Array.isArray(headerValue)) {
24952
+ clientHeader = headerValue.join(', ');
24953
+ }
24954
+ else {
24955
+ clientHeader = headerValue;
24956
+ }
24957
+ }
24861
24958
  }
24862
- return additionalHeaders[header] || clientHeader || _default;
24959
+ const additionalValue = additionalHeaders[Headers.ContentType];
24960
+ // Return the first non-undefined value, converting numbers or arrays to strings if necessary
24961
+ if (additionalValue !== undefined) {
24962
+ if (typeof additionalValue === 'number') {
24963
+ return String(additionalValue);
24964
+ }
24965
+ else if (Array.isArray(additionalValue)) {
24966
+ return additionalValue.join(', ');
24967
+ }
24968
+ else {
24969
+ return additionalValue;
24970
+ }
24971
+ }
24972
+ if (clientHeader !== undefined) {
24973
+ return clientHeader;
24974
+ }
24975
+ return _default;
24863
24976
  }
24864
24977
  _getAgent(parsedUrl) {
24865
24978
  let agent;
@@ -24940,6 +25053,17 @@ function requireLib () {
24940
25053
  }
24941
25054
  return proxyAgent;
24942
25055
  }
25056
+ _getUserAgentWithOrchestrationId(userAgent) {
25057
+ const baseUserAgent = userAgent || 'actions/http-client';
25058
+ const orchId = process.env['ACTIONS_ORCHESTRATION_ID'];
25059
+ if (orchId) {
25060
+ // Sanitize the orchestration ID to ensure it contains only valid characters
25061
+ // Valid characters: 0-9, a-z, _, -, .
25062
+ const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, '_');
25063
+ return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`;
25064
+ }
25065
+ return baseUserAgent;
25066
+ }
24943
25067
  _performExponentialBackoff(retryNumber) {
24944
25068
  return __awaiter(this, void 0, void 0, function* () {
24945
25069
  retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
@@ -25151,8 +25275,8 @@ function requireOidcUtils () {
25151
25275
  return runtimeUrl;
25152
25276
  }
25153
25277
  static getCall(id_token_url) {
25154
- var _a;
25155
25278
  return __awaiter(this, void 0, void 0, function* () {
25279
+ var _a;
25156
25280
  const httpclient = OidcClient.createHttpClient();
25157
25281
  const res = yield httpclient
25158
25282
  .getJson(id_token_url)
@@ -25510,15 +25634,27 @@ function requirePathUtils () {
25510
25634
  }) : function(o, v) {
25511
25635
  o["default"] = v;
25512
25636
  });
25513
- var __importStar = (pathUtils && pathUtils.__importStar) || function (mod) {
25514
- if (mod && mod.__esModule) return mod;
25515
- var result = {};
25516
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25517
- __setModuleDefault(result, mod);
25518
- return result;
25519
- };
25637
+ var __importStar = (pathUtils && pathUtils.__importStar) || (function () {
25638
+ var ownKeys = function(o) {
25639
+ ownKeys = Object.getOwnPropertyNames || function (o) {
25640
+ var ar = [];
25641
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25642
+ return ar;
25643
+ };
25644
+ return ownKeys(o);
25645
+ };
25646
+ return function (mod) {
25647
+ if (mod && mod.__esModule) return mod;
25648
+ var result = {};
25649
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
25650
+ __setModuleDefault(result, mod);
25651
+ return result;
25652
+ };
25653
+ })();
25520
25654
  Object.defineProperty(pathUtils, "__esModule", { value: true });
25521
- pathUtils.toPlatformPath = pathUtils.toWin32Path = pathUtils.toPosixPath = void 0;
25655
+ pathUtils.toPosixPath = toPosixPath;
25656
+ pathUtils.toWin32Path = toWin32Path;
25657
+ pathUtils.toPlatformPath = toPlatformPath;
25522
25658
  const path = __importStar(require$$0$b);
25523
25659
  /**
25524
25660
  * toPosixPath converts the given path to the posix form. On Windows, \\ will be
@@ -25530,7 +25666,6 @@ function requirePathUtils () {
25530
25666
  function toPosixPath(pth) {
25531
25667
  return pth.replace(/[\\]/g, '/');
25532
25668
  }
25533
- pathUtils.toPosixPath = toPosixPath;
25534
25669
  /**
25535
25670
  * toWin32Path converts the given path to the win32 form. On Linux, / will be
25536
25671
  * replaced with \\.
@@ -25541,7 +25676,6 @@ function requirePathUtils () {
25541
25676
  function toWin32Path(pth) {
25542
25677
  return pth.replace(/[/]/g, '\\');
25543
25678
  }
25544
- pathUtils.toWin32Path = toWin32Path;
25545
25679
  /**
25546
25680
  * toPlatformPath converts the given path to a platform-specific path. It does
25547
25681
  * this by replacing instances of / and \ with the platform-specific path
@@ -25553,7 +25687,6 @@ function requirePathUtils () {
25553
25687
  function toPlatformPath(pth) {
25554
25688
  return pth.replace(/[/\\]/g, path.sep);
25555
25689
  }
25556
- pathUtils.toPlatformPath = toPlatformPath;
25557
25690
 
25558
25691
  return pathUtils;
25559
25692
  }
@@ -25576,7 +25709,11 @@ function requireIoUtil () {
25576
25709
  (function (exports$1) {
25577
25710
  var __createBinding = (ioUtil && ioUtil.__createBinding) || (Object.create ? (function(o, m, k, k2) {
25578
25711
  if (k2 === undefined) k2 = k;
25579
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
25712
+ var desc = Object.getOwnPropertyDescriptor(m, k);
25713
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
25714
+ desc = { enumerable: true, get: function() { return m[k]; } };
25715
+ }
25716
+ Object.defineProperty(o, k2, desc);
25580
25717
  }) : (function(o, m, k, k2) {
25581
25718
  if (k2 === undefined) k2 = k;
25582
25719
  o[k2] = m[k];
@@ -25586,13 +25723,23 @@ function requireIoUtil () {
25586
25723
  }) : function(o, v) {
25587
25724
  o["default"] = v;
25588
25725
  });
25589
- var __importStar = (ioUtil && ioUtil.__importStar) || function (mod) {
25590
- if (mod && mod.__esModule) return mod;
25591
- var result = {};
25592
- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25593
- __setModuleDefault(result, mod);
25594
- return result;
25595
- };
25726
+ var __importStar = (ioUtil && ioUtil.__importStar) || (function () {
25727
+ var ownKeys = function(o) {
25728
+ ownKeys = Object.getOwnPropertyNames || function (o) {
25729
+ var ar = [];
25730
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25731
+ return ar;
25732
+ };
25733
+ return ownKeys(o);
25734
+ };
25735
+ return function (mod) {
25736
+ if (mod && mod.__esModule) return mod;
25737
+ var result = {};
25738
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
25739
+ __setModuleDefault(result, mod);
25740
+ return result;
25741
+ };
25742
+ })();
25596
25743
  var __awaiter = (ioUtil && ioUtil.__awaiter) || function (thisArg, _arguments, P, generator) {
25597
25744
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
25598
25745
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -25604,21 +25751,49 @@ function requireIoUtil () {
25604
25751
  };
25605
25752
  var _a;
25606
25753
  Object.defineProperty(exports$1, "__esModule", { value: true });
25607
- exports$1.getCmdPath = exports$1.tryGetExecutablePath = exports$1.isRooted = exports$1.isDirectory = exports$1.exists = exports$1.READONLY = exports$1.UV_FS_O_EXLOCK = exports$1.IS_WINDOWS = exports$1.unlink = exports$1.symlink = exports$1.stat = exports$1.rmdir = exports$1.rm = exports$1.rename = exports$1.readlink = exports$1.readdir = exports$1.open = exports$1.mkdir = exports$1.lstat = exports$1.copyFile = exports$1.chmod = void 0;
25754
+ exports$1.READONLY = exports$1.UV_FS_O_EXLOCK = exports$1.IS_WINDOWS = exports$1.unlink = exports$1.symlink = exports$1.stat = exports$1.rmdir = exports$1.rm = exports$1.rename = exports$1.readdir = exports$1.open = exports$1.mkdir = exports$1.lstat = exports$1.copyFile = exports$1.chmod = void 0;
25755
+ exports$1.readlink = readlink;
25756
+ exports$1.exists = exists;
25757
+ exports$1.isDirectory = isDirectory;
25758
+ exports$1.isRooted = isRooted;
25759
+ exports$1.tryGetExecutablePath = tryGetExecutablePath;
25760
+ exports$1.getCmdPath = getCmdPath;
25608
25761
  const fs = __importStar(require$$0$2);
25609
25762
  const path = __importStar(require$$0$b);
25610
25763
  _a = fs.promises
25611
25764
  // export const {open} = 'fs'
25612
- , exports$1.chmod = _a.chmod, exports$1.copyFile = _a.copyFile, exports$1.lstat = _a.lstat, exports$1.mkdir = _a.mkdir, exports$1.open = _a.open, exports$1.readdir = _a.readdir, exports$1.readlink = _a.readlink, exports$1.rename = _a.rename, exports$1.rm = _a.rm, exports$1.rmdir = _a.rmdir, exports$1.stat = _a.stat, exports$1.symlink = _a.symlink, exports$1.unlink = _a.unlink;
25765
+ , exports$1.chmod = _a.chmod, exports$1.copyFile = _a.copyFile, exports$1.lstat = _a.lstat, exports$1.mkdir = _a.mkdir, exports$1.open = _a.open, exports$1.readdir = _a.readdir, exports$1.rename = _a.rename, exports$1.rm = _a.rm, exports$1.rmdir = _a.rmdir, exports$1.stat = _a.stat, exports$1.symlink = _a.symlink, exports$1.unlink = _a.unlink;
25613
25766
  // export const {open} = 'fs'
25614
25767
  exports$1.IS_WINDOWS = process.platform === 'win32';
25768
+ /**
25769
+ * Custom implementation of readlink to ensure Windows junctions
25770
+ * maintain trailing backslash for backward compatibility with Node.js < 24
25771
+ *
25772
+ * In Node.js 20, Windows junctions (directory symlinks) always returned paths
25773
+ * with trailing backslashes. Node.js 24 removed this behavior, which breaks
25774
+ * code that relied on this format for path operations.
25775
+ *
25776
+ * This implementation restores the Node 20 behavior by adding a trailing
25777
+ * backslash to all junction results on Windows.
25778
+ */
25779
+ function readlink(fsPath) {
25780
+ return __awaiter(this, void 0, void 0, function* () {
25781
+ const result = yield fs.promises.readlink(fsPath);
25782
+ // On Windows, restore Node 20 behavior: add trailing backslash to all results
25783
+ // since junctions on Windows are always directory links
25784
+ if (exports$1.IS_WINDOWS && !result.endsWith('\\')) {
25785
+ return `${result}\\`;
25786
+ }
25787
+ return result;
25788
+ });
25789
+ }
25615
25790
  // See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691
25616
25791
  exports$1.UV_FS_O_EXLOCK = 0x10000000;
25617
25792
  exports$1.READONLY = fs.constants.O_RDONLY;
25618
25793
  function exists(fsPath) {
25619
25794
  return __awaiter(this, void 0, void 0, function* () {
25620
25795
  try {
25621
- yield exports$1.stat(fsPath);
25796
+ yield (0, exports$1.stat)(fsPath);
25622
25797
  }
25623
25798
  catch (err) {
25624
25799
  if (err.code === 'ENOENT') {
@@ -25629,14 +25804,12 @@ function requireIoUtil () {
25629
25804
  return true;
25630
25805
  });
25631
25806
  }
25632
- exports$1.exists = exists;
25633
- function isDirectory(fsPath, useStat = false) {
25634
- return __awaiter(this, void 0, void 0, function* () {
25635
- const stats = useStat ? yield exports$1.stat(fsPath) : yield exports$1.lstat(fsPath);
25807
+ function isDirectory(fsPath_1) {
25808
+ return __awaiter(this, arguments, void 0, function* (fsPath, useStat = false) {
25809
+ const stats = useStat ? yield (0, exports$1.stat)(fsPath) : yield (0, exports$1.lstat)(fsPath);
25636
25810
  return stats.isDirectory();
25637
25811
  });
25638
25812
  }
25639
- exports$1.isDirectory = isDirectory;
25640
25813
  /**
25641
25814
  * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:
25642
25815
  * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases).
@@ -25652,7 +25825,6 @@ function requireIoUtil () {
25652
25825
  }
25653
25826
  return p.startsWith('/');
25654
25827
  }
25655
- exports$1.isRooted = isRooted;
25656
25828
  /**
25657
25829
  * Best effort attempt to determine whether a file exists and is executable.
25658
25830
  * @param filePath file path to check
@@ -25664,7 +25836,7 @@ function requireIoUtil () {
25664
25836
  let stats = undefined;
25665
25837
  try {
25666
25838
  // test file exists
25667
- stats = yield exports$1.stat(filePath);
25839
+ stats = yield (0, exports$1.stat)(filePath);
25668
25840
  }
25669
25841
  catch (err) {
25670
25842
  if (err.code !== 'ENOENT') {
@@ -25692,7 +25864,7 @@ function requireIoUtil () {
25692
25864
  filePath = originalFilePath + extension;
25693
25865
  stats = undefined;
25694
25866
  try {
25695
- stats = yield exports$1.stat(filePath);
25867
+ stats = yield (0, exports$1.stat)(filePath);
25696
25868
  }
25697
25869
  catch (err) {
25698
25870
  if (err.code !== 'ENOENT') {
@@ -25706,7 +25878,7 @@ function requireIoUtil () {
25706
25878
  try {
25707
25879
  const directory = path.dirname(filePath);
25708
25880
  const upperName = path.basename(filePath).toUpperCase();
25709
- for (const actualName of yield exports$1.readdir(directory)) {
25881
+ for (const actualName of yield (0, exports$1.readdir)(directory)) {
25710
25882
  if (upperName === actualName.toUpperCase()) {
25711
25883
  filePath = path.join(directory, actualName);
25712
25884
  break;
@@ -25729,7 +25901,6 @@ function requireIoUtil () {
25729
25901
  return '';
25730
25902
  });
25731
25903
  }
25732
- exports$1.tryGetExecutablePath = tryGetExecutablePath;
25733
25904
  function normalizeSeparators(p) {
25734
25905
  p = p || '';
25735
25906
  if (exports$1.IS_WINDOWS) {
@@ -25746,15 +25917,18 @@ function requireIoUtil () {
25746
25917
  // 256 128 64 32 16 8 4 2 1
25747
25918
  function isUnixExecutable(stats) {
25748
25919
  return ((stats.mode & 1) > 0 ||
25749
- ((stats.mode & 8) > 0 && stats.gid === process.getgid()) ||
25750
- ((stats.mode & 64) > 0 && stats.uid === process.getuid()));
25920
+ ((stats.mode & 8) > 0 &&
25921
+ process.getgid !== undefined &&
25922
+ stats.gid === process.getgid()) ||
25923
+ ((stats.mode & 64) > 0 &&
25924
+ process.getuid !== undefined &&
25925
+ stats.uid === process.getuid()));
25751
25926
  }
25752
25927
  // Get the path of cmd.exe in windows
25753
25928
  function getCmdPath() {
25754
25929
  var _a;
25755
25930
  return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`;
25756
25931
  }
25757
- exports$1.getCmdPath = getCmdPath;
25758
25932
 
25759
25933
  } (ioUtil));
25760
25934
  return ioUtil;
@@ -25767,7 +25941,11 @@ function requireIo () {
25767
25941
  hasRequiredIo = 1;
25768
25942
  var __createBinding = (io && io.__createBinding) || (Object.create ? (function(o, m, k, k2) {
25769
25943
  if (k2 === undefined) k2 = k;
25770
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
25944
+ var desc = Object.getOwnPropertyDescriptor(m, k);
25945
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
25946
+ desc = { enumerable: true, get: function() { return m[k]; } };
25947
+ }
25948
+ Object.defineProperty(o, k2, desc);
25771
25949
  }) : (function(o, m, k, k2) {
25772
25950
  if (k2 === undefined) k2 = k;
25773
25951
  o[k2] = m[k];
@@ -25777,13 +25955,23 @@ function requireIo () {
25777
25955
  }) : function(o, v) {
25778
25956
  o["default"] = v;
25779
25957
  });
25780
- var __importStar = (io && io.__importStar) || function (mod) {
25781
- if (mod && mod.__esModule) return mod;
25782
- var result = {};
25783
- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25784
- __setModuleDefault(result, mod);
25785
- return result;
25786
- };
25958
+ var __importStar = (io && io.__importStar) || (function () {
25959
+ var ownKeys = function(o) {
25960
+ ownKeys = Object.getOwnPropertyNames || function (o) {
25961
+ var ar = [];
25962
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25963
+ return ar;
25964
+ };
25965
+ return ownKeys(o);
25966
+ };
25967
+ return function (mod) {
25968
+ if (mod && mod.__esModule) return mod;
25969
+ var result = {};
25970
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
25971
+ __setModuleDefault(result, mod);
25972
+ return result;
25973
+ };
25974
+ })();
25787
25975
  var __awaiter = (io && io.__awaiter) || function (thisArg, _arguments, P, generator) {
25788
25976
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
25789
25977
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -25794,7 +25982,12 @@ function requireIo () {
25794
25982
  });
25795
25983
  };
25796
25984
  Object.defineProperty(io, "__esModule", { value: true });
25797
- io.findInPath = io.which = io.mkdirP = io.rmRF = io.mv = io.cp = void 0;
25985
+ io.cp = cp;
25986
+ io.mv = mv;
25987
+ io.rmRF = rmRF;
25988
+ io.mkdirP = mkdirP;
25989
+ io.which = which;
25990
+ io.findInPath = findInPath;
25798
25991
  const assert_1 = require$$0$4;
25799
25992
  const path = __importStar(require$$0$b);
25800
25993
  const ioUtil = __importStar(requireIoUtil());
@@ -25806,8 +25999,8 @@ function requireIo () {
25806
25999
  * @param dest destination path
25807
26000
  * @param options optional. See CopyOptions.
25808
26001
  */
25809
- function cp(source, dest, options = {}) {
25810
- return __awaiter(this, void 0, void 0, function* () {
26002
+ function cp(source_1, dest_1) {
26003
+ return __awaiter(this, arguments, void 0, function* (source, dest, options = {}) {
25811
26004
  const { force, recursive, copySourceDirectory } = readCopyOptions(options);
25812
26005
  const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null;
25813
26006
  // Dest is an existing file, but not forcing
@@ -25839,7 +26032,6 @@ function requireIo () {
25839
26032
  }
25840
26033
  });
25841
26034
  }
25842
- io.cp = cp;
25843
26035
  /**
25844
26036
  * Moves a path.
25845
26037
  *
@@ -25847,8 +26039,8 @@ function requireIo () {
25847
26039
  * @param dest destination path
25848
26040
  * @param options optional. See MoveOptions.
25849
26041
  */
25850
- function mv(source, dest, options = {}) {
25851
- return __awaiter(this, void 0, void 0, function* () {
26042
+ function mv(source_1, dest_1) {
26043
+ return __awaiter(this, arguments, void 0, function* (source, dest, options = {}) {
25852
26044
  if (yield ioUtil.exists(dest)) {
25853
26045
  let destExists = true;
25854
26046
  if (yield ioUtil.isDirectory(dest)) {
@@ -25869,7 +26061,6 @@ function requireIo () {
25869
26061
  yield ioUtil.rename(source, dest);
25870
26062
  });
25871
26063
  }
25872
- io.mv = mv;
25873
26064
  /**
25874
26065
  * Remove a path recursively with force
25875
26066
  *
@@ -25898,7 +26089,6 @@ function requireIo () {
25898
26089
  }
25899
26090
  });
25900
26091
  }
25901
- io.rmRF = rmRF;
25902
26092
  /**
25903
26093
  * Make a directory. Creates the full path with folders in between
25904
26094
  * Will throw if it fails
@@ -25908,11 +26098,10 @@ function requireIo () {
25908
26098
  */
25909
26099
  function mkdirP(fsPath) {
25910
26100
  return __awaiter(this, void 0, void 0, function* () {
25911
- assert_1.ok(fsPath, 'a path argument must be provided');
26101
+ (0, assert_1.ok)(fsPath, 'a path argument must be provided');
25912
26102
  yield ioUtil.mkdir(fsPath, { recursive: true });
25913
26103
  });
25914
26104
  }
25915
- io.mkdirP = mkdirP;
25916
26105
  /**
25917
26106
  * Returns path of a tool had the tool actually been invoked. Resolves via paths.
25918
26107
  * If you check and the tool does not exist, it will throw.
@@ -25946,7 +26135,6 @@ function requireIo () {
25946
26135
  return '';
25947
26136
  });
25948
26137
  }
25949
- io.which = which;
25950
26138
  /**
25951
26139
  * Returns a list of all occurrences of the given tool on the system path.
25952
26140
  *
@@ -26003,7 +26191,6 @@ function requireIo () {
26003
26191
  return matches;
26004
26192
  });
26005
26193
  }
26006
- io.findInPath = findInPath;
26007
26194
  function readCopyOptions(options) {
26008
26195
  const force = options.force == null ? true : options.force;
26009
26196
  const recursive = Boolean(options.recursive);
@@ -26073,7 +26260,11 @@ function requireToolrunner () {
26073
26260
  hasRequiredToolrunner = 1;
26074
26261
  var __createBinding = (toolrunner && toolrunner.__createBinding) || (Object.create ? (function(o, m, k, k2) {
26075
26262
  if (k2 === undefined) k2 = k;
26076
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
26263
+ var desc = Object.getOwnPropertyDescriptor(m, k);
26264
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
26265
+ desc = { enumerable: true, get: function() { return m[k]; } };
26266
+ }
26267
+ Object.defineProperty(o, k2, desc);
26077
26268
  }) : (function(o, m, k, k2) {
26078
26269
  if (k2 === undefined) k2 = k;
26079
26270
  o[k2] = m[k];
@@ -26083,13 +26274,23 @@ function requireToolrunner () {
26083
26274
  }) : function(o, v) {
26084
26275
  o["default"] = v;
26085
26276
  });
26086
- var __importStar = (toolrunner && toolrunner.__importStar) || function (mod) {
26087
- if (mod && mod.__esModule) return mod;
26088
- var result = {};
26089
- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
26090
- __setModuleDefault(result, mod);
26091
- return result;
26092
- };
26277
+ var __importStar = (toolrunner && toolrunner.__importStar) || (function () {
26278
+ var ownKeys = function(o) {
26279
+ ownKeys = Object.getOwnPropertyNames || function (o) {
26280
+ var ar = [];
26281
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26282
+ return ar;
26283
+ };
26284
+ return ownKeys(o);
26285
+ };
26286
+ return function (mod) {
26287
+ if (mod && mod.__esModule) return mod;
26288
+ var result = {};
26289
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
26290
+ __setModuleDefault(result, mod);
26291
+ return result;
26292
+ };
26293
+ })();
26093
26294
  var __awaiter = (toolrunner && toolrunner.__awaiter) || function (thisArg, _arguments, P, generator) {
26094
26295
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26095
26296
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -26100,7 +26301,8 @@ function requireToolrunner () {
26100
26301
  });
26101
26302
  };
26102
26303
  Object.defineProperty(toolrunner, "__esModule", { value: true });
26103
- toolrunner.argStringToArray = toolrunner.ToolRunner = void 0;
26304
+ toolrunner.ToolRunner = void 0;
26305
+ toolrunner.argStringToArray = argStringToArray;
26104
26306
  const os = __importStar(require$$0);
26105
26307
  const events = __importStar(require$$4);
26106
26308
  const child = __importStar(require$$2$2);
@@ -26332,10 +26534,7 @@ function requireToolrunner () {
26332
26534
  }
26333
26535
  }
26334
26536
  reverse += '"';
26335
- return reverse
26336
- .split('')
26337
- .reverse()
26338
- .join('');
26537
+ return reverse.split('').reverse().join('');
26339
26538
  }
26340
26539
  _uvQuoteCmdArg(arg) {
26341
26540
  // Tool runner wraps child_process.spawn() and needs to apply the same quoting as
@@ -26411,10 +26610,7 @@ function requireToolrunner () {
26411
26610
  }
26412
26611
  }
26413
26612
  reverse += '"';
26414
- return reverse
26415
- .split('')
26416
- .reverse()
26417
- .join('');
26613
+ return reverse.split('').reverse().join('');
26418
26614
  }
26419
26615
  _cloneExecOptions(options) {
26420
26616
  options = options || {};
@@ -26618,7 +26814,6 @@ function requireToolrunner () {
26618
26814
  }
26619
26815
  return args;
26620
26816
  }
26621
- toolrunner.argStringToArray = argStringToArray;
26622
26817
  class ExecState extends events.EventEmitter {
26623
26818
  constructor(options, toolPath) {
26624
26819
  super();
@@ -26647,7 +26842,7 @@ function requireToolrunner () {
26647
26842
  this._setResult();
26648
26843
  }
26649
26844
  else if (this.processExited) {
26650
- this.timeout = timers_1.setTimeout(ExecState.HandleTimeout, this.delay, this);
26845
+ this.timeout = (0, timers_1.setTimeout)(ExecState.HandleTimeout, this.delay, this);
26651
26846
  }
26652
26847
  }
26653
26848
  _debug(message) {
@@ -26680,8 +26875,7 @@ function requireToolrunner () {
26680
26875
  return;
26681
26876
  }
26682
26877
  if (!state.processClosed && state.processExited) {
26683
- const message = `The STDIO streams did not close within ${state.delay /
26684
- 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;
26878
+ const message = `The STDIO streams did not close within ${state.delay / 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;
26685
26879
  state._debug(message);
26686
26880
  }
26687
26881
  state._setResult();
@@ -26698,7 +26892,11 @@ function requireExec () {
26698
26892
  hasRequiredExec = 1;
26699
26893
  var __createBinding = (exec && exec.__createBinding) || (Object.create ? (function(o, m, k, k2) {
26700
26894
  if (k2 === undefined) k2 = k;
26701
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
26895
+ var desc = Object.getOwnPropertyDescriptor(m, k);
26896
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
26897
+ desc = { enumerable: true, get: function() { return m[k]; } };
26898
+ }
26899
+ Object.defineProperty(o, k2, desc);
26702
26900
  }) : (function(o, m, k, k2) {
26703
26901
  if (k2 === undefined) k2 = k;
26704
26902
  o[k2] = m[k];
@@ -26708,13 +26906,23 @@ function requireExec () {
26708
26906
  }) : function(o, v) {
26709
26907
  o["default"] = v;
26710
26908
  });
26711
- var __importStar = (exec && exec.__importStar) || function (mod) {
26712
- if (mod && mod.__esModule) return mod;
26713
- var result = {};
26714
- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
26715
- __setModuleDefault(result, mod);
26716
- return result;
26717
- };
26909
+ var __importStar = (exec && exec.__importStar) || (function () {
26910
+ var ownKeys = function(o) {
26911
+ ownKeys = Object.getOwnPropertyNames || function (o) {
26912
+ var ar = [];
26913
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26914
+ return ar;
26915
+ };
26916
+ return ownKeys(o);
26917
+ };
26918
+ return function (mod) {
26919
+ if (mod && mod.__esModule) return mod;
26920
+ var result = {};
26921
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
26922
+ __setModuleDefault(result, mod);
26923
+ return result;
26924
+ };
26925
+ })();
26718
26926
  var __awaiter = (exec && exec.__awaiter) || function (thisArg, _arguments, P, generator) {
26719
26927
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26720
26928
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -26725,7 +26933,8 @@ function requireExec () {
26725
26933
  });
26726
26934
  };
26727
26935
  Object.defineProperty(exec, "__esModule", { value: true });
26728
- exec.getExecOutput = exec.exec = void 0;
26936
+ exec.exec = exec$1;
26937
+ exec.getExecOutput = getExecOutput;
26729
26938
  const string_decoder_1 = require$$6;
26730
26939
  const tr = __importStar(requireToolrunner());
26731
26940
  /**
@@ -26751,7 +26960,6 @@ function requireExec () {
26751
26960
  return runner.exec();
26752
26961
  });
26753
26962
  }
26754
- exec.exec = exec$1;
26755
26963
  /**
26756
26964
  * Exec a command and get the output.
26757
26965
  * Output will be streamed to the live console.
@@ -26763,8 +26971,8 @@ function requireExec () {
26763
26971
  * @returns Promise<ExecOutput> exit code, stdout, and stderr
26764
26972
  */
26765
26973
  function getExecOutput(commandLine, args, options) {
26766
- var _a, _b;
26767
26974
  return __awaiter(this, void 0, void 0, function* () {
26975
+ var _a, _b;
26768
26976
  let stdout = '';
26769
26977
  let stderr = '';
26770
26978
  //Using string decoder covers the case where a mult-byte character is split
@@ -26796,7 +27004,6 @@ function requireExec () {
26796
27004
  };
26797
27005
  });
26798
27006
  }
26799
- exec.getExecOutput = getExecOutput;
26800
27007
 
26801
27008
  return exec;
26802
27009
  }
@@ -26823,13 +27030,23 @@ function requirePlatform () {
26823
27030
  }) : function(o, v) {
26824
27031
  o["default"] = v;
26825
27032
  });
26826
- var __importStar = (platform && platform.__importStar) || function (mod) {
26827
- if (mod && mod.__esModule) return mod;
26828
- var result = {};
26829
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
26830
- __setModuleDefault(result, mod);
26831
- return result;
26832
- };
27033
+ var __importStar = (platform && platform.__importStar) || (function () {
27034
+ var ownKeys = function(o) {
27035
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27036
+ var ar = [];
27037
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
27038
+ return ar;
27039
+ };
27040
+ return ownKeys(o);
27041
+ };
27042
+ return function (mod) {
27043
+ if (mod && mod.__esModule) return mod;
27044
+ var result = {};
27045
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
27046
+ __setModuleDefault(result, mod);
27047
+ return result;
27048
+ };
27049
+ })();
26833
27050
  var __awaiter = (platform && platform.__awaiter) || function (thisArg, _arguments, P, generator) {
26834
27051
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26835
27052
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -26843,7 +27060,8 @@ function requirePlatform () {
26843
27060
  return (mod && mod.__esModule) ? mod : { "default": mod };
26844
27061
  };
26845
27062
  Object.defineProperty(exports$1, "__esModule", { value: true });
26846
- exports$1.getDetails = exports$1.isLinux = exports$1.isMacOS = exports$1.isWindows = exports$1.arch = exports$1.platform = void 0;
27063
+ exports$1.isLinux = exports$1.isMacOS = exports$1.isWindows = exports$1.arch = exports$1.platform = void 0;
27064
+ exports$1.getDetails = getDetails;
26847
27065
  const os_1 = __importDefault(require$$0);
26848
27066
  const exec = __importStar(requireExec());
26849
27067
  const getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () {
@@ -26898,7 +27116,6 @@ function requirePlatform () {
26898
27116
  isLinux: exports$1.isLinux });
26899
27117
  });
26900
27118
  }
26901
- exports$1.getDetails = getDetails;
26902
27119
 
26903
27120
  } (platform));
26904
27121
  return platform;
@@ -26926,13 +27143,23 @@ function requireCore () {
26926
27143
  }) : function(o, v) {
26927
27144
  o["default"] = v;
26928
27145
  });
26929
- var __importStar = (core && core.__importStar) || function (mod) {
26930
- if (mod && mod.__esModule) return mod;
26931
- var result = {};
26932
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
26933
- __setModuleDefault(result, mod);
26934
- return result;
26935
- };
27146
+ var __importStar = (core && core.__importStar) || (function () {
27147
+ var ownKeys = function(o) {
27148
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27149
+ var ar = [];
27150
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
27151
+ return ar;
27152
+ };
27153
+ return ownKeys(o);
27154
+ };
27155
+ return function (mod) {
27156
+ if (mod && mod.__esModule) return mod;
27157
+ var result = {};
27158
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
27159
+ __setModuleDefault(result, mod);
27160
+ return result;
27161
+ };
27162
+ })();
26936
27163
  var __awaiter = (core && core.__awaiter) || function (thisArg, _arguments, P, generator) {
26937
27164
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26938
27165
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -26943,7 +27170,28 @@ function requireCore () {
26943
27170
  });
26944
27171
  };
26945
27172
  Object.defineProperty(exports$1, "__esModule", { value: true });
26946
- exports$1.platform = exports$1.toPlatformPath = exports$1.toWin32Path = exports$1.toPosixPath = exports$1.markdownSummary = exports$1.summary = exports$1.getIDToken = exports$1.getState = exports$1.saveState = exports$1.group = exports$1.endGroup = exports$1.startGroup = exports$1.info = exports$1.notice = exports$1.warning = exports$1.error = exports$1.debug = exports$1.isDebug = exports$1.setFailed = exports$1.setCommandEcho = exports$1.setOutput = exports$1.getBooleanInput = exports$1.getMultilineInput = exports$1.getInput = exports$1.addPath = exports$1.setSecret = exports$1.exportVariable = exports$1.ExitCode = void 0;
27173
+ exports$1.platform = exports$1.toPlatformPath = exports$1.toWin32Path = exports$1.toPosixPath = exports$1.markdownSummary = exports$1.summary = exports$1.ExitCode = void 0;
27174
+ exports$1.exportVariable = exportVariable;
27175
+ exports$1.setSecret = setSecret;
27176
+ exports$1.addPath = addPath;
27177
+ exports$1.getInput = getInput;
27178
+ exports$1.getMultilineInput = getMultilineInput;
27179
+ exports$1.getBooleanInput = getBooleanInput;
27180
+ exports$1.setOutput = setOutput;
27181
+ exports$1.setCommandEcho = setCommandEcho;
27182
+ exports$1.setFailed = setFailed;
27183
+ exports$1.isDebug = isDebug;
27184
+ exports$1.debug = debug;
27185
+ exports$1.error = error;
27186
+ exports$1.warning = warning;
27187
+ exports$1.notice = notice;
27188
+ exports$1.info = info;
27189
+ exports$1.startGroup = startGroup;
27190
+ exports$1.endGroup = endGroup;
27191
+ exports$1.group = group;
27192
+ exports$1.saveState = saveState;
27193
+ exports$1.getState = getState;
27194
+ exports$1.getIDToken = getIDToken;
26947
27195
  const command_1 = requireCommand();
26948
27196
  const file_command_1 = requireFileCommand();
26949
27197
  const utils_1 = requireUtils$1();
@@ -26982,15 +27230,38 @@ function requireCore () {
26982
27230
  }
26983
27231
  (0, command_1.issueCommand)('set-env', { name }, convertedVal);
26984
27232
  }
26985
- exports$1.exportVariable = exportVariable;
26986
27233
  /**
26987
27234
  * Registers a secret which will get masked from logs
26988
- * @param secret value of the secret
27235
+ *
27236
+ * @param secret - Value of the secret to be masked
27237
+ * @remarks
27238
+ * This function instructs the Actions runner to mask the specified value in any
27239
+ * logs produced during the workflow run. Once registered, the secret value will
27240
+ * be replaced with asterisks (***) whenever it appears in console output, logs,
27241
+ * or error messages.
27242
+ *
27243
+ * This is useful for protecting sensitive information such as:
27244
+ * - API keys
27245
+ * - Access tokens
27246
+ * - Authentication credentials
27247
+ * - URL parameters containing signatures (SAS tokens)
27248
+ *
27249
+ * Note that masking only affects future logs; any previous appearances of the
27250
+ * secret in logs before calling this function will remain unmasked.
27251
+ *
27252
+ * @example
27253
+ * ```typescript
27254
+ * // Register an API token as a secret
27255
+ * const apiToken = "abc123xyz456";
27256
+ * setSecret(apiToken);
27257
+ *
27258
+ * // Now any logs containing this value will show *** instead
27259
+ * console.log(`Using token: ${apiToken}`); // Outputs: "Using token: ***"
27260
+ * ```
26989
27261
  */
26990
27262
  function setSecret(secret) {
26991
27263
  (0, command_1.issueCommand)('add-mask', {}, secret);
26992
27264
  }
26993
- exports$1.setSecret = setSecret;
26994
27265
  /**
26995
27266
  * Prepends inputPath to the PATH (for this action and future actions)
26996
27267
  * @param inputPath
@@ -27005,7 +27276,6 @@ function requireCore () {
27005
27276
  }
27006
27277
  process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
27007
27278
  }
27008
- exports$1.addPath = addPath;
27009
27279
  /**
27010
27280
  * Gets the value of an input.
27011
27281
  * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
@@ -27025,7 +27295,6 @@ function requireCore () {
27025
27295
  }
27026
27296
  return val.trim();
27027
27297
  }
27028
- exports$1.getInput = getInput;
27029
27298
  /**
27030
27299
  * Gets the values of an multiline input. Each value is also trimmed.
27031
27300
  *
@@ -27043,7 +27312,6 @@ function requireCore () {
27043
27312
  }
27044
27313
  return inputs.map(input => input.trim());
27045
27314
  }
27046
- exports$1.getMultilineInput = getMultilineInput;
27047
27315
  /**
27048
27316
  * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
27049
27317
  * Support boolean input list: `true | True | TRUE | false | False | FALSE` .
@@ -27065,7 +27333,6 @@ function requireCore () {
27065
27333
  throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
27066
27334
  `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
27067
27335
  }
27068
- exports$1.getBooleanInput = getBooleanInput;
27069
27336
  /**
27070
27337
  * Sets the value of an output.
27071
27338
  *
@@ -27081,7 +27348,6 @@ function requireCore () {
27081
27348
  process.stdout.write(os.EOL);
27082
27349
  (0, command_1.issueCommand)('set-output', { name }, (0, utils_1.toCommandValue)(value));
27083
27350
  }
27084
- exports$1.setOutput = setOutput;
27085
27351
  /**
27086
27352
  * Enables or disables the echoing of commands into stdout for the rest of the step.
27087
27353
  * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
@@ -27090,7 +27356,6 @@ function requireCore () {
27090
27356
  function setCommandEcho(enabled) {
27091
27357
  (0, command_1.issue)('echo', enabled ? 'on' : 'off');
27092
27358
  }
27093
- exports$1.setCommandEcho = setCommandEcho;
27094
27359
  //-----------------------------------------------------------------------
27095
27360
  // Results
27096
27361
  //-----------------------------------------------------------------------
@@ -27103,7 +27368,6 @@ function requireCore () {
27103
27368
  process.exitCode = ExitCode.Failure;
27104
27369
  error(message);
27105
27370
  }
27106
- exports$1.setFailed = setFailed;
27107
27371
  //-----------------------------------------------------------------------
27108
27372
  // Logging Commands
27109
27373
  //-----------------------------------------------------------------------
@@ -27113,7 +27377,6 @@ function requireCore () {
27113
27377
  function isDebug() {
27114
27378
  return process.env['RUNNER_DEBUG'] === '1';
27115
27379
  }
27116
- exports$1.isDebug = isDebug;
27117
27380
  /**
27118
27381
  * Writes debug message to user log
27119
27382
  * @param message debug message
@@ -27121,7 +27384,6 @@ function requireCore () {
27121
27384
  function debug(message) {
27122
27385
  (0, command_1.issueCommand)('debug', {}, message);
27123
27386
  }
27124
- exports$1.debug = debug;
27125
27387
  /**
27126
27388
  * Adds an error issue
27127
27389
  * @param message error issue message. Errors will be converted to string via toString()
@@ -27130,7 +27392,6 @@ function requireCore () {
27130
27392
  function error(message, properties = {}) {
27131
27393
  (0, command_1.issueCommand)('error', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
27132
27394
  }
27133
- exports$1.error = error;
27134
27395
  /**
27135
27396
  * Adds a warning issue
27136
27397
  * @param message warning issue message. Errors will be converted to string via toString()
@@ -27139,7 +27400,6 @@ function requireCore () {
27139
27400
  function warning(message, properties = {}) {
27140
27401
  (0, command_1.issueCommand)('warning', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
27141
27402
  }
27142
- exports$1.warning = warning;
27143
27403
  /**
27144
27404
  * Adds a notice issue
27145
27405
  * @param message notice issue message. Errors will be converted to string via toString()
@@ -27148,7 +27408,6 @@ function requireCore () {
27148
27408
  function notice(message, properties = {}) {
27149
27409
  (0, command_1.issueCommand)('notice', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
27150
27410
  }
27151
- exports$1.notice = notice;
27152
27411
  /**
27153
27412
  * Writes info to log with console.log.
27154
27413
  * @param message info message
@@ -27156,7 +27415,6 @@ function requireCore () {
27156
27415
  function info(message) {
27157
27416
  process.stdout.write(message + os.EOL);
27158
27417
  }
27159
- exports$1.info = info;
27160
27418
  /**
27161
27419
  * Begin an output group.
27162
27420
  *
@@ -27167,14 +27425,12 @@ function requireCore () {
27167
27425
  function startGroup(name) {
27168
27426
  (0, command_1.issue)('group', name);
27169
27427
  }
27170
- exports$1.startGroup = startGroup;
27171
27428
  /**
27172
27429
  * End an output group.
27173
27430
  */
27174
27431
  function endGroup() {
27175
27432
  (0, command_1.issue)('endgroup');
27176
27433
  }
27177
- exports$1.endGroup = endGroup;
27178
27434
  /**
27179
27435
  * Wrap an asynchronous function call in a group.
27180
27436
  *
@@ -27196,7 +27452,6 @@ function requireCore () {
27196
27452
  return result;
27197
27453
  });
27198
27454
  }
27199
- exports$1.group = group;
27200
27455
  //-----------------------------------------------------------------------
27201
27456
  // Wrapper action state
27202
27457
  //-----------------------------------------------------------------------
@@ -27214,7 +27469,6 @@ function requireCore () {
27214
27469
  }
27215
27470
  (0, command_1.issueCommand)('save-state', { name }, (0, utils_1.toCommandValue)(value));
27216
27471
  }
27217
- exports$1.saveState = saveState;
27218
27472
  /**
27219
27473
  * Gets the value of an state set by this action's main execution.
27220
27474
  *
@@ -27224,13 +27478,11 @@ function requireCore () {
27224
27478
  function getState(name) {
27225
27479
  return process.env[`STATE_${name}`] || '';
27226
27480
  }
27227
- exports$1.getState = getState;
27228
27481
  function getIDToken(aud) {
27229
27482
  return __awaiter(this, void 0, void 0, function* () {
27230
27483
  return yield oidc_utils_1.OidcClient.getIDToken(aud);
27231
27484
  });
27232
27485
  }
27233
- exports$1.getIDToken = getIDToken;
27234
27486
  /**
27235
27487
  * Summary exports
27236
27488
  */
@@ -27303,7 +27555,7 @@ function isNetworkError(error) {
27303
27555
  return errorMessages.has(message);
27304
27556
  }
27305
27557
 
27306
- async function requestAudit(url, token, context, auth) {
27558
+ async function requestAudit(ref, token, context, auth) {
27307
27559
  const apiUrl = `${getApiBaseUrl()}/api/v1/audit`;
27308
27560
  try {
27309
27561
  const response = await fetch(apiUrl, {
@@ -27313,7 +27565,7 @@ async function requestAudit(url, token, context, auth) {
27313
27565
  Authorization: `Bearer ${token}`
27314
27566
  },
27315
27567
  body: JSON.stringify({
27316
- url,
27568
+ ref,
27317
27569
  context,
27318
27570
  ...(auth && { auth })
27319
27571
  })
@@ -36647,7 +36899,7 @@ function parseEpochSeconds(value, lineNumber, sourceLabel) {
36647
36899
  return num;
36648
36900
  }
36649
36901
 
36650
- async function runAuditCommand(url, token, authOptions) {
36902
+ async function runAuditCommand(ref, token, authOptions) {
36651
36903
  const output = [];
36652
36904
  const errors = [];
36653
36905
  try {
@@ -36659,13 +36911,13 @@ async function runAuditCommand(url, token, authOptions) {
36659
36911
  output.push('🔐 Authentication credentials detected');
36660
36912
  output.push('');
36661
36913
  }
36662
- const response = await requestAudit(url, token, buildContext, auth);
36914
+ const response = await requestAudit(ref, token, buildContext, auth);
36663
36915
  if (!response.success) {
36664
36916
  const { message, details } = response.error;
36665
36917
  errors.push('❌ Unable to schedule audit :(');
36666
36918
  errors.push(` ↳ ${message}`);
36667
36919
  if (details) {
36668
- errors.push(` ↳ ${details}`);
36920
+ errors.push(` ↳ ${JSON.stringify(details)}`);
36669
36921
  }
36670
36922
  return { exitCode: 1, output, errors };
36671
36923
  }
@@ -36799,10 +37051,10 @@ function parseCookie(cookie) {
36799
37051
  /* istanbul ignore file */
36800
37052
  run();
36801
37053
  async function run() {
36802
- const url = coreExports.getInput('url', { required: true });
37054
+ const ref = coreExports.getInput('ref', { required: true });
36803
37055
  const token = coreExports.getInput('token', { required: true });
36804
37056
  const authOptions = parseAuthInputs();
36805
- const result = await runAuditCommand(url, token, authOptions);
37057
+ const result = await runAuditCommand(ref, token, authOptions);
36806
37058
  result.output.forEach((line) => coreExports.info(line));
36807
37059
  result.errors.forEach((line) => coreExports.error(line));
36808
37060
  if (result.exitCode !== 0) {