mirror of
https://github.com/actions/javascript-action.git
synced 2025-12-10 12:52:36 +00:00
Rebuild dist
This commit is contained in:
258
dist/index.js
generated
vendored
258
dist/index.js
generated
vendored
@@ -4,12 +4,12 @@ import require$$1 from 'fs';
|
||||
import require$$1$5 from 'path';
|
||||
import require$$2 from 'http';
|
||||
import require$$3 from 'https';
|
||||
import require$$0$4 from 'net';
|
||||
import require$$0$5 from 'net';
|
||||
import require$$1$1 from 'tls';
|
||||
import require$$4 from 'events';
|
||||
import require$$0$3 from 'assert';
|
||||
import require$$0$2 from 'util';
|
||||
import require$$0$5 from 'stream';
|
||||
import require$$0$4 from 'stream';
|
||||
import require$$7 from 'buffer';
|
||||
import require$$8 from 'querystring';
|
||||
import require$$13 from 'stream/web';
|
||||
@@ -44,7 +44,7 @@ function requireUtils$1 () {
|
||||
// We use any as a valid input type
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
Object.defineProperty(utils$1, "__esModule", { value: true });
|
||||
utils$1.toCommandProperties = utils$1.toCommandValue = void 0;
|
||||
utils$1.toCommandProperties = utils$1.toCommandValue = undefined;
|
||||
/**
|
||||
* Sanitizes an input into a string so it can be passed into issueCommand safely
|
||||
* @param input input to sanitize into a string
|
||||
@@ -88,7 +88,7 @@ var hasRequiredCommand;
|
||||
function requireCommand () {
|
||||
if (hasRequiredCommand) return command;
|
||||
hasRequiredCommand = 1;
|
||||
var __createBinding = (command && command.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = (command.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@@ -99,12 +99,12 @@ function requireCommand () {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (command && command.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
var __setModuleDefault = (command.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (command && command.__importStar) || function (mod) {
|
||||
var __importStar = (command.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
@@ -112,7 +112,7 @@ function requireCommand () {
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(command, "__esModule", { value: true });
|
||||
command.issue = command.issueCommand = void 0;
|
||||
command.issue = command.issueCommand = undefined;
|
||||
const os = __importStar(require$$0);
|
||||
const utils_1 = requireUtils$1();
|
||||
/**
|
||||
@@ -194,7 +194,7 @@ function requireFileCommand () {
|
||||
if (hasRequiredFileCommand) return fileCommand;
|
||||
hasRequiredFileCommand = 1;
|
||||
// For internal use, subject to change.
|
||||
var __createBinding = (fileCommand && fileCommand.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = (fileCommand.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@@ -205,12 +205,12 @@ function requireFileCommand () {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (fileCommand && fileCommand.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
var __setModuleDefault = (fileCommand.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (fileCommand && fileCommand.__importStar) || function (mod) {
|
||||
var __importStar = (fileCommand.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
@@ -218,7 +218,7 @@ function requireFileCommand () {
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(fileCommand, "__esModule", { value: true });
|
||||
fileCommand.prepareKeyValueMessage = fileCommand.issueFileCommand = void 0;
|
||||
fileCommand.prepareKeyValueMessage = fileCommand.issueFileCommand = undefined;
|
||||
// We use any as a valid input type
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
const crypto = __importStar(require$$0$1);
|
||||
@@ -269,7 +269,7 @@ function requireProxy () {
|
||||
if (hasRequiredProxy) return proxy;
|
||||
hasRequiredProxy = 1;
|
||||
Object.defineProperty(proxy, "__esModule", { value: true });
|
||||
proxy.checkBypass = proxy.getProxyUrl = void 0;
|
||||
proxy.checkBypass = proxy.getProxyUrl = undefined;
|
||||
function getProxyUrl(reqUrl) {
|
||||
const usingSsl = reqUrl.protocol === 'https:';
|
||||
if (checkBypass(reqUrl)) {
|
||||
@@ -1093,8 +1093,8 @@ function requireUtil$6 () {
|
||||
const assert = require$$0$3;
|
||||
const { kDestroyed, kBodyUsed } = requireSymbols$4();
|
||||
const { IncomingMessage } = require$$2;
|
||||
const stream = require$$0$5;
|
||||
const net = require$$0$4;
|
||||
const stream = require$$0$4;
|
||||
const net = require$$0$5;
|
||||
const { InvalidArgumentError } = requireErrors();
|
||||
const { Blob } = require$$7;
|
||||
const nodeUtil = require$$0$2;
|
||||
@@ -7990,7 +7990,7 @@ function requireConnect () {
|
||||
if (hasRequiredConnect) return connect;
|
||||
hasRequiredConnect = 1;
|
||||
|
||||
const net = require$$0$4;
|
||||
const net = require$$0$5;
|
||||
const assert = require$$0$3;
|
||||
const util = requireUtil$6();
|
||||
const { InvalidArgumentError, ConnectTimeoutError } = requireErrors();
|
||||
@@ -8190,7 +8190,7 @@ function requireUtils () {
|
||||
if (hasRequiredUtils) return utils;
|
||||
hasRequiredUtils = 1;
|
||||
Object.defineProperty(utils, "__esModule", { value: true });
|
||||
utils.enumToMap = void 0;
|
||||
utils.enumToMap = undefined;
|
||||
function enumToMap(obj) {
|
||||
const res = {};
|
||||
Object.keys(obj).forEach((key) => {
|
||||
@@ -8213,7 +8213,7 @@ function requireConstants$2 () {
|
||||
hasRequiredConstants$2 = 1;
|
||||
(function (exports) {
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0;
|
||||
exports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = undefined;
|
||||
const utils_1 = requireUtils();
|
||||
(function (ERROR) {
|
||||
ERROR[ERROR["OK"] = 0] = "OK";
|
||||
@@ -8757,9 +8757,9 @@ function requireClient () {
|
||||
/* global WebAssembly */
|
||||
|
||||
const assert = require$$0$3;
|
||||
const net = require$$0$4;
|
||||
const net = require$$0$5;
|
||||
const http = require$$2;
|
||||
const { pipeline } = require$$0$5;
|
||||
const { pipeline } = require$$0$4;
|
||||
const util = requireUtil$6();
|
||||
const timers = requireTimers();
|
||||
const Request = requireRequest$1();
|
||||
@@ -11928,7 +11928,7 @@ function requireReadable () {
|
||||
hasRequiredReadable = 1;
|
||||
|
||||
const assert = require$$0$3;
|
||||
const { Readable } = require$$0$5;
|
||||
const { Readable } = require$$0$4;
|
||||
const { RequestAbortedError, NotSupportedError, InvalidArgumentError } = requireErrors();
|
||||
const util = requireUtil$6();
|
||||
const { ReadableStreamFrom, toUSVString } = requireUtil$6();
|
||||
@@ -12560,7 +12560,7 @@ function requireApiStream () {
|
||||
if (hasRequiredApiStream) return apiStream;
|
||||
hasRequiredApiStream = 1;
|
||||
|
||||
const { finished, PassThrough } = require$$0$5;
|
||||
const { finished, PassThrough } = require$$0$4;
|
||||
const {
|
||||
InvalidArgumentError,
|
||||
InvalidReturnValueError,
|
||||
@@ -12792,7 +12792,7 @@ function requireApiPipeline () {
|
||||
Readable,
|
||||
Duplex,
|
||||
PassThrough
|
||||
} = require$$0$5;
|
||||
} = require$$0$4;
|
||||
const {
|
||||
InvalidArgumentError,
|
||||
InvalidReturnValueError,
|
||||
@@ -14085,7 +14085,7 @@ function requirePendingInterceptorsFormatter () {
|
||||
if (hasRequiredPendingInterceptorsFormatter) return pendingInterceptorsFormatter;
|
||||
hasRequiredPendingInterceptorsFormatter = 1;
|
||||
|
||||
const { Transform } = require$$0$5;
|
||||
const { Transform } = require$$0$4;
|
||||
const { Console } = require$$1$3;
|
||||
|
||||
/**
|
||||
@@ -17111,7 +17111,7 @@ function requireFetch () {
|
||||
} = requireConstants$3();
|
||||
const { kHeadersList } = requireSymbols$4();
|
||||
const EE = require$$4;
|
||||
const { Readable, pipeline } = require$$0$5;
|
||||
const { Readable, pipeline } = require$$0$4;
|
||||
const { addAbortListener, isErrored, isReadable, nodeMajor, nodeMinor } = requireUtil$6();
|
||||
const { dataURLProcessor, serializeAMimeType } = requireDataURL();
|
||||
const { TransformStream } = require$$13;
|
||||
@@ -23174,7 +23174,7 @@ function requireReceiver () {
|
||||
if (hasRequiredReceiver) return receiver;
|
||||
hasRequiredReceiver = 1;
|
||||
|
||||
const { Writable } = require$$0$5;
|
||||
const { Writable } = require$$0$4;
|
||||
const diagnosticsChannel = require$$0$9;
|
||||
const { parserStates, opcodes, states, emptyBuffer } = requireConstants();
|
||||
const { kReadyState, kSentClose, kResponse, kReceivedClose } = requireSymbols();
|
||||
@@ -24345,7 +24345,7 @@ function requireLib () {
|
||||
if (hasRequiredLib) return lib;
|
||||
hasRequiredLib = 1;
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
var __createBinding = (lib && lib.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = (lib.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@@ -24356,19 +24356,19 @@ function requireLib () {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (lib && lib.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
var __setModuleDefault = (lib.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (lib && lib.__importStar) || function (mod) {
|
||||
var __importStar = (lib.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (lib && lib.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
var __awaiter = (lib.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
@@ -24378,7 +24378,7 @@ function requireLib () {
|
||||
});
|
||||
};
|
||||
Object.defineProperty(lib, "__esModule", { value: true });
|
||||
lib.HttpClient = lib.isHttps = lib.HttpClientResponse = lib.HttpClientError = lib.getProxyUrl = lib.MediaTypes = lib.Headers = lib.HttpCodes = void 0;
|
||||
lib.HttpClient = lib.isHttps = lib.HttpClientResponse = lib.HttpClientError = lib.getProxyUrl = lib.MediaTypes = lib.Headers = lib.HttpCodes = undefined;
|
||||
const http = __importStar(require$$2);
|
||||
const https = __importStar(require$$3);
|
||||
const pm = __importStar(requireProxy());
|
||||
@@ -24461,8 +24461,8 @@ function requireLib () {
|
||||
this.message = message;
|
||||
}
|
||||
readBody() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return new Promise((resolve) => __awaiter(this, undefined, undefined, function* () {
|
||||
let output = Buffer.alloc(0);
|
||||
this.message.on('data', (chunk) => {
|
||||
output = Buffer.concat([output, chunk]);
|
||||
@@ -24474,8 +24474,8 @@ function requireLib () {
|
||||
});
|
||||
}
|
||||
readBodyBuffer() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return new Promise((resolve) => __awaiter(this, undefined, undefined, function* () {
|
||||
const chunks = [];
|
||||
this.message.on('data', (chunk) => {
|
||||
chunks.push(chunk);
|
||||
@@ -24532,42 +24532,42 @@ function requireLib () {
|
||||
}
|
||||
}
|
||||
options(requestUrl, additionalHeaders) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
|
||||
});
|
||||
}
|
||||
get(requestUrl, additionalHeaders) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return this.request('GET', requestUrl, null, additionalHeaders || {});
|
||||
});
|
||||
}
|
||||
del(requestUrl, additionalHeaders) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return this.request('DELETE', requestUrl, null, additionalHeaders || {});
|
||||
});
|
||||
}
|
||||
post(requestUrl, data, additionalHeaders) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return this.request('POST', requestUrl, data, additionalHeaders || {});
|
||||
});
|
||||
}
|
||||
patch(requestUrl, data, additionalHeaders) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return this.request('PATCH', requestUrl, data, additionalHeaders || {});
|
||||
});
|
||||
}
|
||||
put(requestUrl, data, additionalHeaders) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return this.request('PUT', requestUrl, data, additionalHeaders || {});
|
||||
});
|
||||
}
|
||||
head(requestUrl, additionalHeaders) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return this.request('HEAD', requestUrl, null, additionalHeaders || {});
|
||||
});
|
||||
}
|
||||
sendStream(verb, requestUrl, stream, additionalHeaders) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return this.request(verb, requestUrl, stream, additionalHeaders);
|
||||
});
|
||||
}
|
||||
@@ -24576,14 +24576,14 @@ function requireLib () {
|
||||
* Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
|
||||
*/
|
||||
getJson(requestUrl, additionalHeaders = {}) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
|
||||
const res = yield this.get(requestUrl, additionalHeaders);
|
||||
return this._processResponse(res, this.requestOptions);
|
||||
});
|
||||
}
|
||||
postJson(requestUrl, obj, additionalHeaders = {}) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
const data = JSON.stringify(obj, null, 2);
|
||||
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
|
||||
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
|
||||
@@ -24592,7 +24592,7 @@ function requireLib () {
|
||||
});
|
||||
}
|
||||
putJson(requestUrl, obj, additionalHeaders = {}) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
const data = JSON.stringify(obj, null, 2);
|
||||
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
|
||||
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
|
||||
@@ -24601,7 +24601,7 @@ function requireLib () {
|
||||
});
|
||||
}
|
||||
patchJson(requestUrl, obj, additionalHeaders = {}) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
const data = JSON.stringify(obj, null, 2);
|
||||
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
|
||||
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
|
||||
@@ -24615,7 +24615,7 @@ function requireLib () {
|
||||
* Prefer get, del, post and patch
|
||||
*/
|
||||
request(verb, requestUrl, data, headers) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
if (this._disposed) {
|
||||
throw new Error('Client has already been disposed.');
|
||||
}
|
||||
@@ -24711,7 +24711,7 @@ function requireLib () {
|
||||
* @param data
|
||||
*/
|
||||
requestRaw(info, data) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return new Promise((resolve, reject) => {
|
||||
function callbackForResult(err, res) {
|
||||
if (err) {
|
||||
@@ -24920,15 +24920,15 @@ function requireLib () {
|
||||
return proxyAgent;
|
||||
}
|
||||
_performExponentialBackoff(retryNumber) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
|
||||
const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
|
||||
return new Promise(resolve => setTimeout(() => resolve(), ms));
|
||||
});
|
||||
}
|
||||
_processResponse(res, options) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return new Promise((resolve, reject) => __awaiter(this, undefined, undefined, function* () {
|
||||
const statusCode = res.message.statusCode || 0;
|
||||
const response = {
|
||||
statusCode,
|
||||
@@ -25005,7 +25005,7 @@ var hasRequiredAuth;
|
||||
function requireAuth () {
|
||||
if (hasRequiredAuth) return auth;
|
||||
hasRequiredAuth = 1;
|
||||
var __awaiter = (auth && auth.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
var __awaiter = (auth.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
@@ -25015,7 +25015,7 @@ function requireAuth () {
|
||||
});
|
||||
};
|
||||
Object.defineProperty(auth, "__esModule", { value: true });
|
||||
auth.PersonalAccessTokenCredentialHandler = auth.BearerCredentialHandler = auth.BasicCredentialHandler = void 0;
|
||||
auth.PersonalAccessTokenCredentialHandler = auth.BearerCredentialHandler = auth.BasicCredentialHandler = undefined;
|
||||
class BasicCredentialHandler {
|
||||
constructor(username, password) {
|
||||
this.username = username;
|
||||
@@ -25032,7 +25032,7 @@ function requireAuth () {
|
||||
return false;
|
||||
}
|
||||
handleAuthentication() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
throw new Error('not implemented');
|
||||
});
|
||||
}
|
||||
@@ -25055,7 +25055,7 @@ function requireAuth () {
|
||||
return false;
|
||||
}
|
||||
handleAuthentication() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
throw new Error('not implemented');
|
||||
});
|
||||
}
|
||||
@@ -25078,7 +25078,7 @@ function requireAuth () {
|
||||
return false;
|
||||
}
|
||||
handleAuthentication() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
throw new Error('not implemented');
|
||||
});
|
||||
}
|
||||
@@ -25093,7 +25093,7 @@ var hasRequiredOidcUtils;
|
||||
function requireOidcUtils () {
|
||||
if (hasRequiredOidcUtils) return oidcUtils;
|
||||
hasRequiredOidcUtils = 1;
|
||||
var __awaiter = (oidcUtils && oidcUtils.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
var __awaiter = (oidcUtils.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
@@ -25103,7 +25103,7 @@ function requireOidcUtils () {
|
||||
});
|
||||
};
|
||||
Object.defineProperty(oidcUtils, "__esModule", { value: true });
|
||||
oidcUtils.OidcClient = void 0;
|
||||
oidcUtils.OidcClient = undefined;
|
||||
const http_client_1 = requireLib();
|
||||
const auth_1 = requireAuth();
|
||||
const core_1 = requireCore();
|
||||
@@ -25131,7 +25131,7 @@ function requireOidcUtils () {
|
||||
}
|
||||
static getCall(id_token_url) {
|
||||
var _a;
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
const httpclient = OidcClient.createHttpClient();
|
||||
const res = yield httpclient
|
||||
.getJson(id_token_url)
|
||||
@@ -25140,7 +25140,7 @@ function requireOidcUtils () {
|
||||
Error Code : ${error.statusCode}\n
|
||||
Error Message: ${error.message}`);
|
||||
});
|
||||
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
|
||||
const id_token = (_a = res.result) === null || _a === undefined ? undefined : _a.value;
|
||||
if (!id_token) {
|
||||
throw new Error('Response json body do not have ID Token field');
|
||||
}
|
||||
@@ -25148,7 +25148,7 @@ function requireOidcUtils () {
|
||||
});
|
||||
}
|
||||
static getIDToken(audience) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
try {
|
||||
// New ID Token is requested from action service
|
||||
let id_token_url = OidcClient.getIDTokenUrl();
|
||||
@@ -25180,7 +25180,7 @@ function requireSummary () {
|
||||
if (hasRequiredSummary) return summary;
|
||||
hasRequiredSummary = 1;
|
||||
(function (exports) {
|
||||
var __awaiter = (summary && summary.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
var __awaiter = (summary.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
@@ -25190,7 +25190,7 @@ function requireSummary () {
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0;
|
||||
exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = undefined;
|
||||
const os_1 = require$$0;
|
||||
const fs_1 = require$$1;
|
||||
const { access, appendFile, writeFile } = fs_1.promises;
|
||||
@@ -25207,7 +25207,7 @@ function requireSummary () {
|
||||
* @returns step summary file path
|
||||
*/
|
||||
filePath() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
if (this._filePath) {
|
||||
return this._filePath;
|
||||
}
|
||||
@@ -25251,8 +25251,8 @@ function requireSummary () {
|
||||
* @returns {Promise<Summary>} summary instance
|
||||
*/
|
||||
write(options) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
const overwrite = !!(options === null || options === undefined ? undefined : options.overwrite);
|
||||
const filePath = yield this.filePath();
|
||||
const writeFunc = overwrite ? writeFile : appendFile;
|
||||
yield writeFunc(filePath, this._buffer, { encoding: 'utf8' });
|
||||
@@ -25265,7 +25265,7 @@ function requireSummary () {
|
||||
* @returns {Summary} summary instance
|
||||
*/
|
||||
clear() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return this.emptyBuffer().write({ overwrite: true });
|
||||
});
|
||||
}
|
||||
@@ -25473,7 +25473,7 @@ var hasRequiredPathUtils;
|
||||
function requirePathUtils () {
|
||||
if (hasRequiredPathUtils) return pathUtils;
|
||||
hasRequiredPathUtils = 1;
|
||||
var __createBinding = (pathUtils && pathUtils.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = (pathUtils.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@@ -25484,12 +25484,12 @@ function requirePathUtils () {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (pathUtils && pathUtils.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
var __setModuleDefault = (pathUtils.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (pathUtils && pathUtils.__importStar) || function (mod) {
|
||||
var __importStar = (pathUtils.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
@@ -25497,7 +25497,7 @@ function requirePathUtils () {
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(pathUtils, "__esModule", { value: true });
|
||||
pathUtils.toPlatformPath = pathUtils.toWin32Path = pathUtils.toPosixPath = void 0;
|
||||
pathUtils.toPlatformPath = pathUtils.toWin32Path = pathUtils.toPosixPath = undefined;
|
||||
const path = __importStar(require$$1$5);
|
||||
/**
|
||||
* toPosixPath converts the given path to the posix form. On Windows, \\ will be
|
||||
@@ -25553,26 +25553,26 @@ function requireIoUtil () {
|
||||
if (hasRequiredIoUtil) return ioUtil;
|
||||
hasRequiredIoUtil = 1;
|
||||
(function (exports) {
|
||||
var __createBinding = (ioUtil && ioUtil.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = (ioUtil.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (ioUtil && ioUtil.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
var __setModuleDefault = (ioUtil.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (ioUtil && ioUtil.__importStar) || function (mod) {
|
||||
var __importStar = (ioUtil.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (ioUtil && ioUtil.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
var __awaiter = (ioUtil.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
@@ -25583,7 +25583,7 @@ function requireIoUtil () {
|
||||
};
|
||||
var _a;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0;
|
||||
exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = undefined;
|
||||
const fs = __importStar(require$$1);
|
||||
const path = __importStar(require$$1$5);
|
||||
_a = fs.promises
|
||||
@@ -25595,7 +25595,7 @@ function requireIoUtil () {
|
||||
exports.UV_FS_O_EXLOCK = 0x10000000;
|
||||
exports.READONLY = fs.constants.O_RDONLY;
|
||||
function exists(fsPath) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
try {
|
||||
yield exports.stat(fsPath);
|
||||
}
|
||||
@@ -25610,7 +25610,7 @@ function requireIoUtil () {
|
||||
}
|
||||
exports.exists = exists;
|
||||
function isDirectory(fsPath, useStat = false) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath);
|
||||
return stats.isDirectory();
|
||||
});
|
||||
@@ -25639,7 +25639,7 @@ function requireIoUtil () {
|
||||
* @return if file exists and is executable, returns the file path. otherwise empty string.
|
||||
*/
|
||||
function tryGetExecutablePath(filePath, extensions) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
let stats = undefined;
|
||||
try {
|
||||
// test file exists
|
||||
@@ -25731,7 +25731,7 @@ function requireIoUtil () {
|
||||
// Get the path of cmd.exe in windows
|
||||
function getCmdPath() {
|
||||
var _a;
|
||||
return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`;
|
||||
return (_a = process.env['COMSPEC']) !== null && _a !== undefined ? _a : `cmd.exe`;
|
||||
}
|
||||
exports.getCmdPath = getCmdPath;
|
||||
|
||||
@@ -25744,26 +25744,26 @@ var hasRequiredIo;
|
||||
function requireIo () {
|
||||
if (hasRequiredIo) return io;
|
||||
hasRequiredIo = 1;
|
||||
var __createBinding = (io && io.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = (io.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (io && io.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
var __setModuleDefault = (io.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (io && io.__importStar) || function (mod) {
|
||||
var __importStar = (io.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (io && io.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
var __awaiter = (io.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
@@ -25773,7 +25773,7 @@ function requireIo () {
|
||||
});
|
||||
};
|
||||
Object.defineProperty(io, "__esModule", { value: true });
|
||||
io.findInPath = io.which = io.mkdirP = io.rmRF = io.mv = io.cp = void 0;
|
||||
io.findInPath = io.which = io.mkdirP = io.rmRF = io.mv = io.cp = undefined;
|
||||
const assert_1 = require$$0$3;
|
||||
const path = __importStar(require$$1$5);
|
||||
const ioUtil = __importStar(requireIoUtil());
|
||||
@@ -25786,7 +25786,7 @@ function requireIo () {
|
||||
* @param options optional. See CopyOptions.
|
||||
*/
|
||||
function cp(source, dest, options = {}) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
const { force, recursive, copySourceDirectory } = readCopyOptions(options);
|
||||
const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null;
|
||||
// Dest is an existing file, but not forcing
|
||||
@@ -25827,7 +25827,7 @@ function requireIo () {
|
||||
* @param options optional. See MoveOptions.
|
||||
*/
|
||||
function mv(source, dest, options = {}) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
if (yield ioUtil.exists(dest)) {
|
||||
let destExists = true;
|
||||
if (yield ioUtil.isDirectory(dest)) {
|
||||
@@ -25855,7 +25855,7 @@ function requireIo () {
|
||||
* @param inputPath path to remove
|
||||
*/
|
||||
function rmRF(inputPath) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
if (ioUtil.IS_WINDOWS) {
|
||||
// Check for invalid characters
|
||||
// https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
|
||||
@@ -25886,7 +25886,7 @@ function requireIo () {
|
||||
* @returns Promise<void>
|
||||
*/
|
||||
function mkdirP(fsPath) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
assert_1.ok(fsPath, 'a path argument must be provided');
|
||||
yield ioUtil.mkdir(fsPath, { recursive: true });
|
||||
});
|
||||
@@ -25901,7 +25901,7 @@ function requireIo () {
|
||||
* @returns Promise<string> path to tool
|
||||
*/
|
||||
function which(tool, check) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
if (!tool) {
|
||||
throw new Error("parameter 'tool' is required");
|
||||
}
|
||||
@@ -25932,7 +25932,7 @@ function requireIo () {
|
||||
* @returns Promise<string[]> the paths of the tool
|
||||
*/
|
||||
function findInPath(tool) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
if (!tool) {
|
||||
throw new Error("parameter 'tool' is required");
|
||||
}
|
||||
@@ -25992,7 +25992,7 @@ function requireIo () {
|
||||
return { force, recursive, copySourceDirectory };
|
||||
}
|
||||
function cpDirRecursive(sourceDir, destDir, currentDepth, force) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
// Ensure there is not a run away recursive copy
|
||||
if (currentDepth >= 255)
|
||||
return;
|
||||
@@ -26017,7 +26017,7 @@ function requireIo () {
|
||||
}
|
||||
// Buffered file copy
|
||||
function copyFile(srcFile, destFile, force) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) {
|
||||
// unlink/re-link it
|
||||
try {
|
||||
@@ -26050,26 +26050,26 @@ var hasRequiredToolrunner;
|
||||
function requireToolrunner () {
|
||||
if (hasRequiredToolrunner) return toolrunner;
|
||||
hasRequiredToolrunner = 1;
|
||||
var __createBinding = (toolrunner && toolrunner.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = (toolrunner.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (toolrunner && toolrunner.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
var __setModuleDefault = (toolrunner.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (toolrunner && toolrunner.__importStar) || function (mod) {
|
||||
var __importStar = (toolrunner.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (toolrunner && toolrunner.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
var __awaiter = (toolrunner.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
@@ -26079,7 +26079,7 @@ function requireToolrunner () {
|
||||
});
|
||||
};
|
||||
Object.defineProperty(toolrunner, "__esModule", { value: true });
|
||||
toolrunner.argStringToArray = toolrunner.ToolRunner = void 0;
|
||||
toolrunner.argStringToArray = toolrunner.ToolRunner = undefined;
|
||||
const os = __importStar(require$$0);
|
||||
const events = __importStar(require$$4);
|
||||
const child = __importStar(require$$2$2);
|
||||
@@ -26432,7 +26432,7 @@ function requireToolrunner () {
|
||||
* @returns number
|
||||
*/
|
||||
exec() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
// root the tool path if it is unrooted and contains relative pathing
|
||||
if (!ioUtil.isRooted(this.toolPath) &&
|
||||
(this.toolPath.includes('/') ||
|
||||
@@ -26443,7 +26443,7 @@ function requireToolrunner () {
|
||||
// if the tool is only a file name, then resolve it from the PATH
|
||||
// otherwise verify it exists (add extension on Windows if necessary)
|
||||
this.toolPath = yield io.which(this.toolPath, true);
|
||||
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
||||
return new Promise((resolve, reject) => __awaiter(this, undefined, undefined, function* () {
|
||||
this._debug(`exec tool: ${this.toolPath}`);
|
||||
this._debug('arguments:');
|
||||
for (const arg of this.args) {
|
||||
@@ -26675,26 +26675,26 @@ var hasRequiredExec;
|
||||
function requireExec () {
|
||||
if (hasRequiredExec) return exec;
|
||||
hasRequiredExec = 1;
|
||||
var __createBinding = (exec && exec.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = (exec.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (exec && exec.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
var __setModuleDefault = (exec.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (exec && exec.__importStar) || function (mod) {
|
||||
var __importStar = (exec.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (exec && exec.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
var __awaiter = (exec.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
@@ -26704,7 +26704,7 @@ function requireExec () {
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exec, "__esModule", { value: true });
|
||||
exec.getExecOutput = exec.exec = void 0;
|
||||
exec.getExecOutput = exec.exec = undefined;
|
||||
const string_decoder_1 = require$$6;
|
||||
const tr = __importStar(requireToolrunner());
|
||||
/**
|
||||
@@ -26718,7 +26718,7 @@ function requireExec () {
|
||||
* @returns Promise<number> exit code
|
||||
*/
|
||||
function exec$1(commandLine, args, options) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
const commandArgs = tr.argStringToArray(commandLine);
|
||||
if (commandArgs.length === 0) {
|
||||
throw new Error(`Parameter 'commandLine' cannot be null or empty.`);
|
||||
@@ -26743,14 +26743,14 @@ function requireExec () {
|
||||
*/
|
||||
function getExecOutput(commandLine, args, options) {
|
||||
var _a, _b;
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
let stdout = '';
|
||||
let stderr = '';
|
||||
//Using string decoder covers the case where a mult-byte character is split
|
||||
const stdoutDecoder = new string_decoder_1.StringDecoder('utf8');
|
||||
const stderrDecoder = new string_decoder_1.StringDecoder('utf8');
|
||||
const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout;
|
||||
const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr;
|
||||
const originalStdoutListener = (_a = options === null || options === undefined ? undefined : options.listeners) === null || _a === undefined ? undefined : _a.stdout;
|
||||
const originalStdErrListener = (_b = options === null || options === undefined ? undefined : options.listeners) === null || _b === undefined ? undefined : _b.stderr;
|
||||
const stdErrListener = (data) => {
|
||||
stderr += stderrDecoder.write(data);
|
||||
if (originalStdErrListener) {
|
||||
@@ -26763,7 +26763,7 @@ function requireExec () {
|
||||
originalStdoutListener(data);
|
||||
}
|
||||
};
|
||||
const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), { stdout: stdOutListener, stderr: stdErrListener });
|
||||
const listeners = Object.assign(Object.assign({}, options === null || options === undefined ? undefined : options.listeners), { stdout: stdOutListener, stderr: stdErrListener });
|
||||
const exitCode = yield exec$1(commandLine, args, Object.assign(Object.assign({}, options), { listeners }));
|
||||
//flush any remaining characters
|
||||
stdout += stdoutDecoder.end();
|
||||
@@ -26786,7 +26786,7 @@ function requirePlatform () {
|
||||
if (hasRequiredPlatform) return platform;
|
||||
hasRequiredPlatform = 1;
|
||||
(function (exports) {
|
||||
var __createBinding = (platform && platform.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = (platform.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@@ -26797,19 +26797,19 @@ function requirePlatform () {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (platform && platform.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
var __setModuleDefault = (platform.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (platform && platform.__importStar) || function (mod) {
|
||||
var __importStar = (platform.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (platform && platform.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
var __awaiter = (platform.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
@@ -26818,14 +26818,14 @@ function requirePlatform () {
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importDefault = (platform && platform.__importDefault) || function (mod) {
|
||||
var __importDefault = (platform.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getDetails = exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = void 0;
|
||||
exports.getDetails = exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = undefined;
|
||||
const os_1 = __importDefault(require$$0);
|
||||
const exec = __importStar(requireExec());
|
||||
const getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () {
|
||||
const getWindowsInfo = () => __awaiter(undefined, undefined, undefined, function* () {
|
||||
const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', undefined, {
|
||||
silent: true
|
||||
});
|
||||
@@ -26837,19 +26837,19 @@ function requirePlatform () {
|
||||
version: version.trim()
|
||||
};
|
||||
});
|
||||
const getMacOsInfo = () => __awaiter(void 0, void 0, void 0, function* () {
|
||||
const getMacOsInfo = () => __awaiter(undefined, undefined, undefined, function* () {
|
||||
var _a, _b, _c, _d;
|
||||
const { stdout } = yield exec.getExecOutput('sw_vers', undefined, {
|
||||
silent: true
|
||||
});
|
||||
const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '';
|
||||
const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : '';
|
||||
const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === undefined ? undefined : _a[1]) !== null && _b !== undefined ? _b : '';
|
||||
const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === undefined ? undefined : _c[1]) !== null && _d !== undefined ? _d : '';
|
||||
return {
|
||||
name,
|
||||
version
|
||||
};
|
||||
});
|
||||
const getLinuxInfo = () => __awaiter(void 0, void 0, void 0, function* () {
|
||||
const getLinuxInfo = () => __awaiter(undefined, undefined, undefined, function* () {
|
||||
const { stdout } = yield exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], {
|
||||
silent: true
|
||||
});
|
||||
@@ -26865,7 +26865,7 @@ function requirePlatform () {
|
||||
exports.isMacOS = exports.platform === 'darwin';
|
||||
exports.isLinux = exports.platform === 'linux';
|
||||
function getDetails() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return Object.assign(Object.assign({}, (yield (exports.isWindows
|
||||
? getWindowsInfo()
|
||||
: exports.isMacOS
|
||||
@@ -26889,7 +26889,7 @@ function requireCore () {
|
||||
if (hasRequiredCore) return core;
|
||||
hasRequiredCore = 1;
|
||||
(function (exports) {
|
||||
var __createBinding = (core && core.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = (core.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@@ -26900,19 +26900,19 @@ function requireCore () {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (core && core.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
var __setModuleDefault = (core.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (core && core.__importStar) || function (mod) {
|
||||
var __importStar = (core.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __awaiter = (core && core.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
var __awaiter = (core.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
@@ -26922,7 +26922,7 @@ function requireCore () {
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
|
||||
exports.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = undefined;
|
||||
const command_1 = requireCommand();
|
||||
const file_command_1 = requireFileCommand();
|
||||
const utils_1 = requireUtils$1();
|
||||
@@ -27163,7 +27163,7 @@ function requireCore () {
|
||||
* @param fn The function to wrap in the group
|
||||
*/
|
||||
function group(name, fn) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
startGroup(name);
|
||||
let result;
|
||||
try {
|
||||
@@ -27205,7 +27205,7 @@ function requireCore () {
|
||||
}
|
||||
exports.getState = getState;
|
||||
function getIDToken(aud) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return __awaiter(this, undefined, undefined, function* () {
|
||||
return yield oidc_utils_1.OidcClient.getIDToken(aud);
|
||||
});
|
||||
}
|
||||
|
||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user