mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 08:13:35 +00:00 
			
		
		
		
	build syncing
This commit is contained in:
		
							parent
							
								
									ff9e2a3ca5
								
							
						
					
					
						commit
						cc2914011d
					
				
							
								
								
									
										957
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										957
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										650
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										650
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							@ -4039,62 +4039,7 @@ module.exports = ["ac","com.ac","edu.ac","gov.ac","net.ac","mil.ac","org.ac","ad
 | 
				
			|||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
/* 66 */,
 | 
					/* 66 */,
 | 
				
			||||||
/* 67 */,
 | 
					/* 67 */,
 | 
				
			||||||
/* 68 */
 | 
					/* 68 */,
 | 
				
			||||||
/***/ (function(__unusedmodule, exports) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
"use strict";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Object.defineProperty(exports, '__esModule', { value: true });
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
async function auth(token) {
 | 
					 | 
				
			||||||
  const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth";
 | 
					 | 
				
			||||||
  return {
 | 
					 | 
				
			||||||
    type: "token",
 | 
					 | 
				
			||||||
    token: token,
 | 
					 | 
				
			||||||
    tokenType
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 * Prefix token for usage in the Authorization header
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * @param token OAuth token or JSON Web Token
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
function withAuthorizationPrefix(token) {
 | 
					 | 
				
			||||||
  if (token.split(/\./).length === 3) {
 | 
					 | 
				
			||||||
    return `bearer ${token}`;
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  return `token ${token}`;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
async function hook(token, request, route, parameters) {
 | 
					 | 
				
			||||||
  const endpoint = request.endpoint.merge(route, parameters);
 | 
					 | 
				
			||||||
  endpoint.headers.authorization = withAuthorizationPrefix(token);
 | 
					 | 
				
			||||||
  return request(endpoint);
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const createTokenAuth = function createTokenAuth(token) {
 | 
					 | 
				
			||||||
  if (!token) {
 | 
					 | 
				
			||||||
    throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  if (typeof token !== "string") {
 | 
					 | 
				
			||||||
    throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  token = token.replace(/^(token|bearer) +/i, "");
 | 
					 | 
				
			||||||
  return Object.assign(auth.bind(null, token), {
 | 
					 | 
				
			||||||
    hook: hook.bind(null, token)
 | 
					 | 
				
			||||||
  });
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
exports.createTokenAuth = createTokenAuth;
 | 
					 | 
				
			||||||
//# sourceMappingURL=index.js.map
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/***/ }),
 | 
					 | 
				
			||||||
/* 69 */,
 | 
					/* 69 */,
 | 
				
			||||||
/* 70 */
 | 
					/* 70 */
 | 
				
			||||||
/***/ (function(__unusedmodule, exports) {
 | 
					/***/ (function(__unusedmodule, exports) {
 | 
				
			||||||
@ -4183,7 +4128,6 @@ module.exports = v4;
 | 
				
			|||||||
// We use any as a valid input type
 | 
					// We use any as a valid input type
 | 
				
			||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
 | 
					/* eslint-disable @typescript-eslint/no-explicit-any */
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
exports.toCommandProperties = exports.toCommandValue = void 0;
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Sanitizes an input into a string so it can be passed into issueCommand safely
 | 
					 * Sanitizes an input into a string so it can be passed into issueCommand safely
 | 
				
			||||||
 * @param input input to sanitize into a string
 | 
					 * @param input input to sanitize into a string
 | 
				
			||||||
@ -4198,26 +4142,6 @@ function toCommandValue(input) {
 | 
				
			|||||||
    return JSON.stringify(input);
 | 
					    return JSON.stringify(input);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.toCommandValue = toCommandValue;
 | 
					exports.toCommandValue = toCommandValue;
 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * @param annotationProperties
 | 
					 | 
				
			||||||
 * @returns The command properties to send with the actual annotation command
 | 
					 | 
				
			||||||
 * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
function toCommandProperties(annotationProperties) {
 | 
					 | 
				
			||||||
    if (!Object.keys(annotationProperties).length) {
 | 
					 | 
				
			||||||
        return {};
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return {
 | 
					 | 
				
			||||||
        title: annotationProperties.title,
 | 
					 | 
				
			||||||
        file: annotationProperties.file,
 | 
					 | 
				
			||||||
        line: annotationProperties.startLine,
 | 
					 | 
				
			||||||
        endLine: annotationProperties.endLine,
 | 
					 | 
				
			||||||
        col: annotationProperties.startColumn,
 | 
					 | 
				
			||||||
        endColumn: annotationProperties.endColumn
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
exports.toCommandProperties = toCommandProperties;
 | 
					 | 
				
			||||||
//# sourceMappingURL=utils.js.map
 | 
					//# sourceMappingURL=utils.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
@ -5346,27 +5270,14 @@ main_1.run();
 | 
				
			|||||||
"use strict";
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// For internal use, subject to change.
 | 
					// For internal use, subject to change.
 | 
				
			||||||
var __createBinding = (this && this.__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 = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
 | 
					 | 
				
			||||||
    Object.defineProperty(o, "default", { enumerable: true, value: v });
 | 
					 | 
				
			||||||
}) : function(o, v) {
 | 
					 | 
				
			||||||
    o["default"] = v;
 | 
					 | 
				
			||||||
});
 | 
					 | 
				
			||||||
var __importStar = (this && this.__importStar) || function (mod) {
 | 
					var __importStar = (this && this.__importStar) || function (mod) {
 | 
				
			||||||
    if (mod && mod.__esModule) return mod;
 | 
					    if (mod && mod.__esModule) return mod;
 | 
				
			||||||
    var result = {};
 | 
					    var result = {};
 | 
				
			||||||
    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
 | 
					    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
 | 
				
			||||||
    __setModuleDefault(result, mod);
 | 
					    result["default"] = mod;
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
exports.issueCommand = void 0;
 | 
					 | 
				
			||||||
// We use any as a valid input type
 | 
					// We use any as a valid input type
 | 
				
			||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
 | 
					/* eslint-disable @typescript-eslint/no-explicit-any */
 | 
				
			||||||
const fs = __importStar(__webpack_require__(747));
 | 
					const fs = __importStar(__webpack_require__(747));
 | 
				
			||||||
@ -7003,6 +6914,12 @@ function isGhes() {
 | 
				
			|||||||
    return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
 | 
					    return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
function resolveVersionInput() {
 | 
					function resolveVersionInput() {
 | 
				
			||||||
 | 
					    if (!(core.getInput('node-version') || core.getInput('version'))) {
 | 
				
			||||||
 | 
					        core.error('No specified file exists');
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    if (core.getInput('node-version') && core.getInput('version')) {
 | 
				
			||||||
 | 
					        core.warning('Both version and node-version-file are specified');
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    let version = core.getInput('node-version') || core.getInput('version');
 | 
					    let version = core.getInput('node-version') || core.getInput('version');
 | 
				
			||||||
    if (version) {
 | 
					    if (version) {
 | 
				
			||||||
        return version;
 | 
					        return version;
 | 
				
			||||||
@ -8665,7 +8582,7 @@ module.exports = v1;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
module.exports = authenticationPlugin;
 | 
					module.exports = authenticationPlugin;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const { createTokenAuth } = __webpack_require__(68);
 | 
					const { createTokenAuth } = __webpack_require__(813);
 | 
				
			||||||
const { Deprecation } = __webpack_require__(692);
 | 
					const { Deprecation } = __webpack_require__(692);
 | 
				
			||||||
const once = __webpack_require__(969);
 | 
					const once = __webpack_require__(969);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -9161,71 +9078,7 @@ exports.Pattern = Pattern;
 | 
				
			|||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
/* 224 */,
 | 
					/* 224 */,
 | 
				
			||||||
/* 225 */,
 | 
					/* 225 */,
 | 
				
			||||||
/* 226 */
 | 
					/* 226 */,
 | 
				
			||||||
/***/ (function(__unusedmodule, exports) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
"use strict";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					 | 
				
			||||||
class BasicCredentialHandler {
 | 
					 | 
				
			||||||
    constructor(username, password) {
 | 
					 | 
				
			||||||
        this.username = username;
 | 
					 | 
				
			||||||
        this.password = password;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    prepareRequest(options) {
 | 
					 | 
				
			||||||
        options.headers['Authorization'] =
 | 
					 | 
				
			||||||
            'Basic ' +
 | 
					 | 
				
			||||||
                Buffer.from(this.username + ':' + this.password).toString('base64');
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    // This handler cannot handle 401
 | 
					 | 
				
			||||||
    canHandleAuthentication(response) {
 | 
					 | 
				
			||||||
        return false;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    handleAuthentication(httpClient, requestInfo, objs) {
 | 
					 | 
				
			||||||
        return null;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
exports.BasicCredentialHandler = BasicCredentialHandler;
 | 
					 | 
				
			||||||
class BearerCredentialHandler {
 | 
					 | 
				
			||||||
    constructor(token) {
 | 
					 | 
				
			||||||
        this.token = token;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    // currently implements pre-authorization
 | 
					 | 
				
			||||||
    // TODO: support preAuth = false where it hooks on 401
 | 
					 | 
				
			||||||
    prepareRequest(options) {
 | 
					 | 
				
			||||||
        options.headers['Authorization'] = 'Bearer ' + this.token;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    // This handler cannot handle 401
 | 
					 | 
				
			||||||
    canHandleAuthentication(response) {
 | 
					 | 
				
			||||||
        return false;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    handleAuthentication(httpClient, requestInfo, objs) {
 | 
					 | 
				
			||||||
        return null;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
exports.BearerCredentialHandler = BearerCredentialHandler;
 | 
					 | 
				
			||||||
class PersonalAccessTokenCredentialHandler {
 | 
					 | 
				
			||||||
    constructor(token) {
 | 
					 | 
				
			||||||
        this.token = token;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    // currently implements pre-authorization
 | 
					 | 
				
			||||||
    // TODO: support preAuth = false where it hooks on 401
 | 
					 | 
				
			||||||
    prepareRequest(options) {
 | 
					 | 
				
			||||||
        options.headers['Authorization'] =
 | 
					 | 
				
			||||||
            'Basic ' + Buffer.from('PAT:' + this.token).toString('base64');
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    // This handler cannot handle 401
 | 
					 | 
				
			||||||
    canHandleAuthentication(response) {
 | 
					 | 
				
			||||||
        return false;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    handleAuthentication(httpClient, requestInfo, objs) {
 | 
					 | 
				
			||||||
        return null;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/***/ }),
 | 
					 | 
				
			||||||
/* 227 */,
 | 
					/* 227 */,
 | 
				
			||||||
/* 228 */,
 | 
					/* 228 */,
 | 
				
			||||||
/* 229 */
 | 
					/* 229 */
 | 
				
			||||||
@ -45494,27 +45347,14 @@ function octokitValidate(octokit) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
"use strict";
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var __createBinding = (this && this.__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 = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
 | 
					 | 
				
			||||||
    Object.defineProperty(o, "default", { enumerable: true, value: v });
 | 
					 | 
				
			||||||
}) : function(o, v) {
 | 
					 | 
				
			||||||
    o["default"] = v;
 | 
					 | 
				
			||||||
});
 | 
					 | 
				
			||||||
var __importStar = (this && this.__importStar) || function (mod) {
 | 
					var __importStar = (this && this.__importStar) || function (mod) {
 | 
				
			||||||
    if (mod && mod.__esModule) return mod;
 | 
					    if (mod && mod.__esModule) return mod;
 | 
				
			||||||
    var result = {};
 | 
					    var result = {};
 | 
				
			||||||
    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
 | 
					    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
 | 
				
			||||||
    __setModuleDefault(result, mod);
 | 
					    result["default"] = mod;
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
exports.issue = exports.issueCommand = void 0;
 | 
					 | 
				
			||||||
const os = __importStar(__webpack_require__(87));
 | 
					const os = __importStar(__webpack_require__(87));
 | 
				
			||||||
const utils_1 = __webpack_require__(82);
 | 
					const utils_1 = __webpack_require__(82);
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
@ -48081,25 +47921,6 @@ exports.GitHub = GitHub;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
"use strict";
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var __createBinding = (this && this.__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 = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
 | 
					 | 
				
			||||||
    Object.defineProperty(o, "default", { enumerable: true, value: v });
 | 
					 | 
				
			||||||
}) : function(o, v) {
 | 
					 | 
				
			||||||
    o["default"] = v;
 | 
					 | 
				
			||||||
});
 | 
					 | 
				
			||||||
var __importStar = (this && this.__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 = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
 | 
					var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
 | 
				
			||||||
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
 | 
					    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
 | 
				
			||||||
    return new (P || (P = Promise))(function (resolve, reject) {
 | 
					    return new (P || (P = Promise))(function (resolve, reject) {
 | 
				
			||||||
@ -48109,14 +47930,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
 | 
				
			|||||||
        step((generator = generator.apply(thisArg, _arguments || [])).next());
 | 
					        step((generator = generator.apply(thisArg, _arguments || [])).next());
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					var __importStar = (this && this.__importStar) || function (mod) {
 | 
				
			||||||
 | 
					    if (mod && mod.__esModule) return mod;
 | 
				
			||||||
 | 
					    var result = {};
 | 
				
			||||||
 | 
					    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
 | 
				
			||||||
 | 
					    result["default"] = mod;
 | 
				
			||||||
 | 
					    return result;
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
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;
 | 
					 | 
				
			||||||
const command_1 = __webpack_require__(431);
 | 
					const command_1 = __webpack_require__(431);
 | 
				
			||||||
const file_command_1 = __webpack_require__(102);
 | 
					const file_command_1 = __webpack_require__(102);
 | 
				
			||||||
const utils_1 = __webpack_require__(82);
 | 
					const utils_1 = __webpack_require__(82);
 | 
				
			||||||
const os = __importStar(__webpack_require__(87));
 | 
					const os = __importStar(__webpack_require__(87));
 | 
				
			||||||
const path = __importStar(__webpack_require__(622));
 | 
					const path = __importStar(__webpack_require__(622));
 | 
				
			||||||
const oidc_utils_1 = __webpack_require__(742);
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * The code to exit an action
 | 
					 * The code to exit an action
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@ -48178,9 +48004,7 @@ function addPath(inputPath) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
exports.addPath = addPath;
 | 
					exports.addPath = addPath;
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Gets the value of an input.
 | 
					 * Gets the value of an input.  The value is also trimmed.
 | 
				
			||||||
 * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
 | 
					 | 
				
			||||||
 * Returns an empty string if the value is not defined.
 | 
					 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * @param     name     name of the input to get
 | 
					 * @param     name     name of the input to get
 | 
				
			||||||
 * @param     options  optional. See InputOptions.
 | 
					 * @param     options  optional. See InputOptions.
 | 
				
			||||||
@ -48191,49 +48015,9 @@ function getInput(name, options) {
 | 
				
			|||||||
    if (options && options.required && !val) {
 | 
					    if (options && options.required && !val) {
 | 
				
			||||||
        throw new Error(`Input required and not supplied: ${name}`);
 | 
					        throw new Error(`Input required and not supplied: ${name}`);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if (options && options.trimWhitespace === false) {
 | 
					 | 
				
			||||||
        return val;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return val.trim();
 | 
					    return val.trim();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.getInput = getInput;
 | 
					exports.getInput = getInput;
 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 * Gets the values of an multiline input.  Each value is also trimmed.
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * @param     name     name of the input to get
 | 
					 | 
				
			||||||
 * @param     options  optional. See InputOptions.
 | 
					 | 
				
			||||||
 * @returns   string[]
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
function getMultilineInput(name, options) {
 | 
					 | 
				
			||||||
    const inputs = getInput(name, options)
 | 
					 | 
				
			||||||
        .split('\n')
 | 
					 | 
				
			||||||
        .filter(x => x !== '');
 | 
					 | 
				
			||||||
    return inputs;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
exports.getMultilineInput = getMultilineInput;
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
 | 
					 | 
				
			||||||
 * Support boolean input list: `true | True | TRUE | false | False | FALSE` .
 | 
					 | 
				
			||||||
 * The return value is also in boolean type.
 | 
					 | 
				
			||||||
 * ref: https://yaml.org/spec/1.2/spec.html#id2804923
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * @param     name     name of the input to get
 | 
					 | 
				
			||||||
 * @param     options  optional. See InputOptions.
 | 
					 | 
				
			||||||
 * @returns   boolean
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
function getBooleanInput(name, options) {
 | 
					 | 
				
			||||||
    const trueValue = ['true', 'True', 'TRUE'];
 | 
					 | 
				
			||||||
    const falseValue = ['false', 'False', 'FALSE'];
 | 
					 | 
				
			||||||
    const val = getInput(name, options);
 | 
					 | 
				
			||||||
    if (trueValue.includes(val))
 | 
					 | 
				
			||||||
        return true;
 | 
					 | 
				
			||||||
    if (falseValue.includes(val))
 | 
					 | 
				
			||||||
        return false;
 | 
					 | 
				
			||||||
    throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
 | 
					 | 
				
			||||||
        `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
exports.getBooleanInput = getBooleanInput;
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Sets the value of an output.
 | 
					 * Sets the value of an output.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
@ -48242,7 +48026,6 @@ exports.getBooleanInput = getBooleanInput;
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
 | 
					// eslint-disable-next-line @typescript-eslint/no-explicit-any
 | 
				
			||||||
function setOutput(name, value) {
 | 
					function setOutput(name, value) {
 | 
				
			||||||
    process.stdout.write(os.EOL);
 | 
					 | 
				
			||||||
    command_1.issueCommand('set-output', { name }, value);
 | 
					    command_1.issueCommand('set-output', { name }, value);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.setOutput = setOutput;
 | 
					exports.setOutput = setOutput;
 | 
				
			||||||
@ -48289,30 +48072,19 @@ exports.debug = debug;
 | 
				
			|||||||
/**
 | 
					/**
 | 
				
			||||||
 * Adds an error issue
 | 
					 * Adds an error issue
 | 
				
			||||||
 * @param message error issue message. Errors will be converted to string via toString()
 | 
					 * @param message error issue message. Errors will be converted to string via toString()
 | 
				
			||||||
 * @param properties optional properties to add to the annotation.
 | 
					 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
function error(message, properties = {}) {
 | 
					function error(message) {
 | 
				
			||||||
    command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
 | 
					    command_1.issue('error', message instanceof Error ? message.toString() : message);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.error = error;
 | 
					exports.error = error;
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Adds a warning issue
 | 
					 * Adds an warning issue
 | 
				
			||||||
 * @param message warning issue message. Errors will be converted to string via toString()
 | 
					 * @param message warning issue message. Errors will be converted to string via toString()
 | 
				
			||||||
 * @param properties optional properties to add to the annotation.
 | 
					 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
function warning(message, properties = {}) {
 | 
					function warning(message) {
 | 
				
			||||||
    command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
 | 
					    command_1.issue('warning', message instanceof Error ? message.toString() : message);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.warning = warning;
 | 
					exports.warning = warning;
 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 * Adds a notice issue
 | 
					 | 
				
			||||||
 * @param message notice issue message. Errors will be converted to string via toString()
 | 
					 | 
				
			||||||
 * @param properties optional properties to add to the annotation.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
function notice(message, properties = {}) {
 | 
					 | 
				
			||||||
    command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
exports.notice = notice;
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Writes info to log with console.log.
 | 
					 * Writes info to log with console.log.
 | 
				
			||||||
 * @param message info message
 | 
					 * @param message info message
 | 
				
			||||||
@ -48385,12 +48157,6 @@ function getState(name) {
 | 
				
			|||||||
    return process.env[`STATE_${name}`] || '';
 | 
					    return process.env[`STATE_${name}`] || '';
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.getState = getState;
 | 
					exports.getState = getState;
 | 
				
			||||||
function getIDToken(aud) {
 | 
					 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					 | 
				
			||||||
        return yield oidc_utils_1.OidcClient.getIDToken(aud);
 | 
					 | 
				
			||||||
    });
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
exports.getIDToken = getIDToken;
 | 
					 | 
				
			||||||
//# sourceMappingURL=core.js.map
 | 
					//# sourceMappingURL=core.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
@ -50419,6 +50185,7 @@ module.exports = bytesToUuid;
 | 
				
			|||||||
"use strict";
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
 | 
					const url = __webpack_require__(835);
 | 
				
			||||||
const http = __webpack_require__(605);
 | 
					const http = __webpack_require__(605);
 | 
				
			||||||
const https = __webpack_require__(211);
 | 
					const https = __webpack_require__(211);
 | 
				
			||||||
const pm = __webpack_require__(950);
 | 
					const pm = __webpack_require__(950);
 | 
				
			||||||
@ -50446,7 +50213,6 @@ var HttpCodes;
 | 
				
			|||||||
    HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
 | 
					    HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
 | 
				
			||||||
    HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
 | 
					    HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
 | 
				
			||||||
    HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
 | 
					    HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
 | 
				
			||||||
    HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
 | 
					 | 
				
			||||||
    HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
 | 
					    HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
 | 
				
			||||||
    HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
 | 
					    HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
 | 
				
			||||||
    HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
 | 
					    HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
 | 
				
			||||||
@ -50467,34 +50233,15 @@ var MediaTypes;
 | 
				
			|||||||
 * @param serverUrl  The server URL where the request will be sent. For example, https://api.github.com
 | 
					 * @param serverUrl  The server URL where the request will be sent. For example, https://api.github.com
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
function getProxyUrl(serverUrl) {
 | 
					function getProxyUrl(serverUrl) {
 | 
				
			||||||
    let proxyUrl = pm.getProxyUrl(new URL(serverUrl));
 | 
					    let proxyUrl = pm.getProxyUrl(url.parse(serverUrl));
 | 
				
			||||||
    return proxyUrl ? proxyUrl.href : '';
 | 
					    return proxyUrl ? proxyUrl.href : '';
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.getProxyUrl = getProxyUrl;
 | 
					exports.getProxyUrl = getProxyUrl;
 | 
				
			||||||
const HttpRedirectCodes = [
 | 
					const HttpRedirectCodes = [HttpCodes.MovedPermanently, HttpCodes.ResourceMoved, HttpCodes.SeeOther, HttpCodes.TemporaryRedirect, HttpCodes.PermanentRedirect];
 | 
				
			||||||
    HttpCodes.MovedPermanently,
 | 
					const HttpResponseRetryCodes = [HttpCodes.BadGateway, HttpCodes.ServiceUnavailable, HttpCodes.GatewayTimeout];
 | 
				
			||||||
    HttpCodes.ResourceMoved,
 | 
					 | 
				
			||||||
    HttpCodes.SeeOther,
 | 
					 | 
				
			||||||
    HttpCodes.TemporaryRedirect,
 | 
					 | 
				
			||||||
    HttpCodes.PermanentRedirect
 | 
					 | 
				
			||||||
];
 | 
					 | 
				
			||||||
const HttpResponseRetryCodes = [
 | 
					 | 
				
			||||||
    HttpCodes.BadGateway,
 | 
					 | 
				
			||||||
    HttpCodes.ServiceUnavailable,
 | 
					 | 
				
			||||||
    HttpCodes.GatewayTimeout
 | 
					 | 
				
			||||||
];
 | 
					 | 
				
			||||||
const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
 | 
					const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
 | 
				
			||||||
const ExponentialBackoffCeiling = 10;
 | 
					const ExponentialBackoffCeiling = 10;
 | 
				
			||||||
const ExponentialBackoffTimeSlice = 5;
 | 
					const ExponentialBackoffTimeSlice = 5;
 | 
				
			||||||
class HttpClientError extends Error {
 | 
					 | 
				
			||||||
    constructor(message, statusCode) {
 | 
					 | 
				
			||||||
        super(message);
 | 
					 | 
				
			||||||
        this.name = 'HttpClientError';
 | 
					 | 
				
			||||||
        this.statusCode = statusCode;
 | 
					 | 
				
			||||||
        Object.setPrototypeOf(this, HttpClientError.prototype);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
exports.HttpClientError = HttpClientError;
 | 
					 | 
				
			||||||
class HttpClientResponse {
 | 
					class HttpClientResponse {
 | 
				
			||||||
    constructor(message) {
 | 
					    constructor(message) {
 | 
				
			||||||
        this.message = message;
 | 
					        this.message = message;
 | 
				
			||||||
@ -50513,7 +50260,7 @@ class HttpClientResponse {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
exports.HttpClientResponse = HttpClientResponse;
 | 
					exports.HttpClientResponse = HttpClientResponse;
 | 
				
			||||||
function isHttps(requestUrl) {
 | 
					function isHttps(requestUrl) {
 | 
				
			||||||
    let parsedUrl = new URL(requestUrl);
 | 
					    let parsedUrl = url.parse(requestUrl);
 | 
				
			||||||
    return parsedUrl.protocol === 'https:';
 | 
					    return parsedUrl.protocol === 'https:';
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.isHttps = isHttps;
 | 
					exports.isHttps = isHttps;
 | 
				
			||||||
@ -50616,22 +50363,18 @@ class HttpClient {
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    async request(verb, requestUrl, data, headers) {
 | 
					    async request(verb, requestUrl, data, headers) {
 | 
				
			||||||
        if (this._disposed) {
 | 
					        if (this._disposed) {
 | 
				
			||||||
            throw new Error('Client has already been disposed.');
 | 
					            throw new Error("Client has already been disposed.");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        let parsedUrl = new URL(requestUrl);
 | 
					        let parsedUrl = url.parse(requestUrl);
 | 
				
			||||||
        let info = this._prepareRequest(verb, parsedUrl, headers);
 | 
					        let info = this._prepareRequest(verb, parsedUrl, headers);
 | 
				
			||||||
        // Only perform retries on reads since writes may not be idempotent.
 | 
					        // Only perform retries on reads since writes may not be idempotent.
 | 
				
			||||||
        let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1
 | 
					        let maxTries = (this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1) ? this._maxRetries + 1 : 1;
 | 
				
			||||||
            ? this._maxRetries + 1
 | 
					 | 
				
			||||||
            : 1;
 | 
					 | 
				
			||||||
        let numTries = 0;
 | 
					        let numTries = 0;
 | 
				
			||||||
        let response;
 | 
					        let response;
 | 
				
			||||||
        while (numTries < maxTries) {
 | 
					        while (numTries < maxTries) {
 | 
				
			||||||
            response = await this.requestRaw(info, data);
 | 
					            response = await this.requestRaw(info, data);
 | 
				
			||||||
            // Check if it's an authentication challenge
 | 
					            // Check if it's an authentication challenge
 | 
				
			||||||
            if (response &&
 | 
					            if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) {
 | 
				
			||||||
                response.message &&
 | 
					 | 
				
			||||||
                response.message.statusCode === HttpCodes.Unauthorized) {
 | 
					 | 
				
			||||||
                let authenticationHandler;
 | 
					                let authenticationHandler;
 | 
				
			||||||
                for (let i = 0; i < this.handlers.length; i++) {
 | 
					                for (let i = 0; i < this.handlers.length; i++) {
 | 
				
			||||||
                    if (this.handlers[i].canHandleAuthentication(response)) {
 | 
					                    if (this.handlers[i].canHandleAuthentication(response)) {
 | 
				
			||||||
@ -50649,32 +50392,21 @@ class HttpClient {
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            let redirectsRemaining = this._maxRedirects;
 | 
					            let redirectsRemaining = this._maxRedirects;
 | 
				
			||||||
            while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 &&
 | 
					            while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1
 | 
				
			||||||
                this._allowRedirects &&
 | 
					                && this._allowRedirects
 | 
				
			||||||
                redirectsRemaining > 0) {
 | 
					                && redirectsRemaining > 0) {
 | 
				
			||||||
                const redirectUrl = response.message.headers['location'];
 | 
					                const redirectUrl = response.message.headers["location"];
 | 
				
			||||||
                if (!redirectUrl) {
 | 
					                if (!redirectUrl) {
 | 
				
			||||||
                    // if there's no location to redirect to, we won't
 | 
					                    // if there's no location to redirect to, we won't
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                let parsedRedirectUrl = new URL(redirectUrl);
 | 
					                let parsedRedirectUrl = url.parse(redirectUrl);
 | 
				
			||||||
                if (parsedUrl.protocol == 'https:' &&
 | 
					                if (parsedUrl.protocol == 'https:' && parsedUrl.protocol != parsedRedirectUrl.protocol && !this._allowRedirectDowngrade) {
 | 
				
			||||||
                    parsedUrl.protocol != parsedRedirectUrl.protocol &&
 | 
					                    throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");
 | 
				
			||||||
                    !this._allowRedirectDowngrade) {
 | 
					 | 
				
			||||||
                    throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.');
 | 
					 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                // we need to finish reading the response before reassigning response
 | 
					                // we need to finish reading the response before reassigning response
 | 
				
			||||||
                // which will leak the open socket.
 | 
					                // which will leak the open socket.
 | 
				
			||||||
                await response.readBody();
 | 
					                await response.readBody();
 | 
				
			||||||
                // strip authorization header if redirected to a different hostname
 | 
					 | 
				
			||||||
                if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
 | 
					 | 
				
			||||||
                    for (let header in headers) {
 | 
					 | 
				
			||||||
                        // header names are case insensitive
 | 
					 | 
				
			||||||
                        if (header.toLowerCase() === 'authorization') {
 | 
					 | 
				
			||||||
                            delete headers[header];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                    }
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                // let's make the request with the new redirectUrl
 | 
					                // let's make the request with the new redirectUrl
 | 
				
			||||||
                info = this._prepareRequest(verb, parsedRedirectUrl, headers);
 | 
					                info = this._prepareRequest(verb, parsedRedirectUrl, headers);
 | 
				
			||||||
                response = await this.requestRaw(info, data);
 | 
					                response = await this.requestRaw(info, data);
 | 
				
			||||||
@ -50725,8 +50457,8 @@ class HttpClient {
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    requestRawWithCallback(info, data, onResult) {
 | 
					    requestRawWithCallback(info, data, onResult) {
 | 
				
			||||||
        let socket;
 | 
					        let socket;
 | 
				
			||||||
        if (typeof data === 'string') {
 | 
					        if (typeof (data) === 'string') {
 | 
				
			||||||
            info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
 | 
					            info.options.headers["Content-Length"] = Buffer.byteLength(data, 'utf8');
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        let callbackCalled = false;
 | 
					        let callbackCalled = false;
 | 
				
			||||||
        let handleResult = (err, res) => {
 | 
					        let handleResult = (err, res) => {
 | 
				
			||||||
@ -50739,7 +50471,7 @@ class HttpClient {
 | 
				
			|||||||
            let res = new HttpClientResponse(msg);
 | 
					            let res = new HttpClientResponse(msg);
 | 
				
			||||||
            handleResult(null, res);
 | 
					            handleResult(null, res);
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        req.on('socket', sock => {
 | 
					        req.on('socket', (sock) => {
 | 
				
			||||||
            socket = sock;
 | 
					            socket = sock;
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        // If we ever get disconnected, we want the socket to timeout eventually
 | 
					        // If we ever get disconnected, we want the socket to timeout eventually
 | 
				
			||||||
@ -50754,10 +50486,10 @@ class HttpClient {
 | 
				
			|||||||
            // res should have headers
 | 
					            // res should have headers
 | 
				
			||||||
            handleResult(err, null);
 | 
					            handleResult(err, null);
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        if (data && typeof data === 'string') {
 | 
					        if (data && typeof (data) === 'string') {
 | 
				
			||||||
            req.write(data, 'utf8');
 | 
					            req.write(data, 'utf8');
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (data && typeof data !== 'string') {
 | 
					        if (data && typeof (data) !== 'string') {
 | 
				
			||||||
            data.on('close', function () {
 | 
					            data.on('close', function () {
 | 
				
			||||||
                req.end();
 | 
					                req.end();
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
@ -50773,7 +50505,7 @@ class HttpClient {
 | 
				
			|||||||
     * @param serverUrl  The server URL where the request will be sent. For example, https://api.github.com
 | 
					     * @param serverUrl  The server URL where the request will be sent. For example, https://api.github.com
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    getAgent(serverUrl) {
 | 
					    getAgent(serverUrl) {
 | 
				
			||||||
        let parsedUrl = new URL(serverUrl);
 | 
					        let parsedUrl = url.parse(serverUrl);
 | 
				
			||||||
        return this._getAgent(parsedUrl);
 | 
					        return this._getAgent(parsedUrl);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    _prepareRequest(method, requestUrl, headers) {
 | 
					    _prepareRequest(method, requestUrl, headers) {
 | 
				
			||||||
@ -50784,34 +50516,31 @@ class HttpClient {
 | 
				
			|||||||
        const defaultPort = usingSsl ? 443 : 80;
 | 
					        const defaultPort = usingSsl ? 443 : 80;
 | 
				
			||||||
        info.options = {};
 | 
					        info.options = {};
 | 
				
			||||||
        info.options.host = info.parsedUrl.hostname;
 | 
					        info.options.host = info.parsedUrl.hostname;
 | 
				
			||||||
        info.options.port = info.parsedUrl.port
 | 
					        info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;
 | 
				
			||||||
            ? parseInt(info.parsedUrl.port)
 | 
					        info.options.path = (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
 | 
				
			||||||
            : defaultPort;
 | 
					 | 
				
			||||||
        info.options.path =
 | 
					 | 
				
			||||||
            (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
 | 
					 | 
				
			||||||
        info.options.method = method;
 | 
					        info.options.method = method;
 | 
				
			||||||
        info.options.headers = this._mergeHeaders(headers);
 | 
					        info.options.headers = this._mergeHeaders(headers);
 | 
				
			||||||
        if (this.userAgent != null) {
 | 
					        if (this.userAgent != null) {
 | 
				
			||||||
            info.options.headers['user-agent'] = this.userAgent;
 | 
					            info.options.headers["user-agent"] = this.userAgent;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        info.options.agent = this._getAgent(info.parsedUrl);
 | 
					        info.options.agent = this._getAgent(info.parsedUrl);
 | 
				
			||||||
        // gives handlers an opportunity to participate
 | 
					        // gives handlers an opportunity to participate
 | 
				
			||||||
        if (this.handlers) {
 | 
					        if (this.handlers) {
 | 
				
			||||||
            this.handlers.forEach(handler => {
 | 
					            this.handlers.forEach((handler) => {
 | 
				
			||||||
                handler.prepareRequest(info.options);
 | 
					                handler.prepareRequest(info.options);
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return info;
 | 
					        return info;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    _mergeHeaders(headers) {
 | 
					    _mergeHeaders(headers) {
 | 
				
			||||||
        const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
 | 
					        const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {});
 | 
				
			||||||
        if (this.requestOptions && this.requestOptions.headers) {
 | 
					        if (this.requestOptions && this.requestOptions.headers) {
 | 
				
			||||||
            return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
 | 
					            return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return lowercaseKeys(headers || {});
 | 
					        return lowercaseKeys(headers || {});
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
 | 
					    _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
 | 
				
			||||||
        const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
 | 
					        const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {});
 | 
				
			||||||
        let clientHeader;
 | 
					        let clientHeader;
 | 
				
			||||||
        if (this.requestOptions && this.requestOptions.headers) {
 | 
					        if (this.requestOptions && this.requestOptions.headers) {
 | 
				
			||||||
            clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
 | 
					            clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
 | 
				
			||||||
@ -50846,12 +50575,10 @@ class HttpClient {
 | 
				
			|||||||
                maxSockets: maxSockets,
 | 
					                maxSockets: maxSockets,
 | 
				
			||||||
                keepAlive: this._keepAlive,
 | 
					                keepAlive: this._keepAlive,
 | 
				
			||||||
                proxy: {
 | 
					                proxy: {
 | 
				
			||||||
                    ...((proxyUrl.username || proxyUrl.password) && {
 | 
					                    proxyAuth: proxyUrl.auth,
 | 
				
			||||||
                        proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`
 | 
					 | 
				
			||||||
                    }),
 | 
					 | 
				
			||||||
                    host: proxyUrl.hostname,
 | 
					                    host: proxyUrl.hostname,
 | 
				
			||||||
                    port: proxyUrl.port
 | 
					                    port: proxyUrl.port
 | 
				
			||||||
                }
 | 
					                },
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
            let tunnelAgent;
 | 
					            let tunnelAgent;
 | 
				
			||||||
            const overHttps = proxyUrl.protocol === 'https:';
 | 
					            const overHttps = proxyUrl.protocol === 'https:';
 | 
				
			||||||
@ -50878,9 +50605,7 @@ class HttpClient {
 | 
				
			|||||||
            // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
 | 
					            // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
 | 
				
			||||||
            // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
 | 
					            // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
 | 
				
			||||||
            // we have to cast it to any and change it directly
 | 
					            // we have to cast it to any and change it directly
 | 
				
			||||||
            agent.options = Object.assign(agent.options || {}, {
 | 
					            agent.options = Object.assign(agent.options || {}, { rejectUnauthorized: false });
 | 
				
			||||||
                rejectUnauthorized: false
 | 
					 | 
				
			||||||
            });
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return agent;
 | 
					        return agent;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -50941,10 +50666,14 @@ class HttpClient {
 | 
				
			|||||||
                    msg = contents;
 | 
					                    msg = contents;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                else {
 | 
					                else {
 | 
				
			||||||
                    msg = 'Failed request: (' + statusCode + ')';
 | 
					                    msg = "Failed request: (" + statusCode + ")";
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                let err = new Error(msg);
 | 
				
			||||||
 | 
					                // attach statusCode and body obj (if available) to the error object
 | 
				
			||||||
 | 
					                err['statusCode'] = statusCode;
 | 
				
			||||||
 | 
					                if (response.result) {
 | 
				
			||||||
 | 
					                    err['result'] = response.result;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                let err = new HttpClientError(msg, statusCode);
 | 
					 | 
				
			||||||
                err.result = response.result;
 | 
					 | 
				
			||||||
                reject(err);
 | 
					                reject(err);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else {
 | 
					            else {
 | 
				
			||||||
@ -57489,86 +57218,66 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand
 | 
				
			|||||||
/* 740 */,
 | 
					/* 740 */,
 | 
				
			||||||
/* 741 */,
 | 
					/* 741 */,
 | 
				
			||||||
/* 742 */
 | 
					/* 742 */
 | 
				
			||||||
/***/ (function(__unusedmodule, exports, __webpack_require__) {
 | 
					/***/ (function(module, __unusedexports, __webpack_require__) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"use strict";
 | 
					var fs = __webpack_require__(747)
 | 
				
			||||||
 | 
					var core
 | 
				
			||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
 | 
					if (process.platform === 'win32' || global.TESTING_WINDOWS) {
 | 
				
			||||||
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
 | 
					  core = __webpack_require__(818)
 | 
				
			||||||
    return new (P || (P = Promise))(function (resolve, reject) {
 | 
					} else {
 | 
				
			||||||
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
 | 
					  core = __webpack_require__(197)
 | 
				
			||||||
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
 | 
					 | 
				
			||||||
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
 | 
					 | 
				
			||||||
        step((generator = generator.apply(thisArg, _arguments || [])).next());
 | 
					 | 
				
			||||||
    });
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					 | 
				
			||||||
exports.OidcClient = void 0;
 | 
					 | 
				
			||||||
const http_client_1 = __webpack_require__(539);
 | 
					 | 
				
			||||||
const auth_1 = __webpack_require__(226);
 | 
					 | 
				
			||||||
const core_1 = __webpack_require__(470);
 | 
					 | 
				
			||||||
class OidcClient {
 | 
					 | 
				
			||||||
    static createHttpClient(allowRetry = true, maxRetry = 10) {
 | 
					 | 
				
			||||||
        const requestOptions = {
 | 
					 | 
				
			||||||
            allowRetries: allowRetry,
 | 
					 | 
				
			||||||
            maxRetries: maxRetry
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
        return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    static getRequestToken() {
 | 
					 | 
				
			||||||
        const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN'];
 | 
					 | 
				
			||||||
        if (!token) {
 | 
					 | 
				
			||||||
            throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable');
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        return token;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    static getIDTokenUrl() {
 | 
					 | 
				
			||||||
        const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL'];
 | 
					 | 
				
			||||||
        if (!runtimeUrl) {
 | 
					 | 
				
			||||||
            throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable');
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        return runtimeUrl;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    static getCall(id_token_url) {
 | 
					 | 
				
			||||||
        var _a;
 | 
					 | 
				
			||||||
        return __awaiter(this, void 0, void 0, function* () {
 | 
					 | 
				
			||||||
            const httpclient = OidcClient.createHttpClient();
 | 
					 | 
				
			||||||
            const res = yield httpclient
 | 
					 | 
				
			||||||
                .getJson(id_token_url)
 | 
					 | 
				
			||||||
                .catch(error => {
 | 
					 | 
				
			||||||
                throw new Error(`Failed to get ID Token. \n 
 | 
					 | 
				
			||||||
        Error Code : ${error.statusCode}\n 
 | 
					 | 
				
			||||||
        Error Message: ${error.result.message}`);
 | 
					 | 
				
			||||||
            });
 | 
					 | 
				
			||||||
            const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
 | 
					 | 
				
			||||||
            if (!id_token) {
 | 
					 | 
				
			||||||
                throw new Error('Response json body do not have ID Token field');
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            return id_token;
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    static getIDToken(audience) {
 | 
					 | 
				
			||||||
        return __awaiter(this, void 0, void 0, function* () {
 | 
					 | 
				
			||||||
            try {
 | 
					 | 
				
			||||||
                // New ID Token is requested from action service
 | 
					 | 
				
			||||||
                let id_token_url = OidcClient.getIDTokenUrl();
 | 
					 | 
				
			||||||
                if (audience) {
 | 
					 | 
				
			||||||
                    const encodedAudience = encodeURIComponent(audience);
 | 
					 | 
				
			||||||
                    id_token_url = `${id_token_url}&audience=${encodedAudience}`;
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                core_1.debug(`ID token url is ${id_token_url}`);
 | 
					 | 
				
			||||||
                const id_token = yield OidcClient.getCall(id_token_url);
 | 
					 | 
				
			||||||
                core_1.setSecret(id_token);
 | 
					 | 
				
			||||||
                return id_token;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            catch (error) {
 | 
					 | 
				
			||||||
                throw new Error(`Error message: ${error.message}`);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.OidcClient = OidcClient;
 | 
					
 | 
				
			||||||
//# sourceMappingURL=oidc-utils.js.map
 | 
					module.exports = isexe
 | 
				
			||||||
 | 
					isexe.sync = sync
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function isexe (path, options, cb) {
 | 
				
			||||||
 | 
					  if (typeof options === 'function') {
 | 
				
			||||||
 | 
					    cb = options
 | 
				
			||||||
 | 
					    options = {}
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  if (!cb) {
 | 
				
			||||||
 | 
					    if (typeof Promise !== 'function') {
 | 
				
			||||||
 | 
					      throw new TypeError('callback not provided')
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    return new Promise(function (resolve, reject) {
 | 
				
			||||||
 | 
					      isexe(path, options || {}, function (er, is) {
 | 
				
			||||||
 | 
					        if (er) {
 | 
				
			||||||
 | 
					          reject(er)
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
 | 
					          resolve(is)
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  core(path, options || {}, function (er, is) {
 | 
				
			||||||
 | 
					    // ignore EACCES because that just means we aren't allowed to run it
 | 
				
			||||||
 | 
					    if (er) {
 | 
				
			||||||
 | 
					      if (er.code === 'EACCES' || options && options.ignoreErrors) {
 | 
				
			||||||
 | 
					        er = null
 | 
				
			||||||
 | 
					        is = false
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    cb(er, is)
 | 
				
			||||||
 | 
					  })
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function sync (path, options) {
 | 
				
			||||||
 | 
					  // my kingdom for a filtered catch
 | 
				
			||||||
 | 
					  try {
 | 
				
			||||||
 | 
					    return core.sync(path, options || {})
 | 
				
			||||||
 | 
					  } catch (er) {
 | 
				
			||||||
 | 
					    if (options && options.ignoreErrors || er.code === 'EACCES') {
 | 
				
			||||||
 | 
					      return false
 | 
				
			||||||
 | 
					    } else {
 | 
				
			||||||
 | 
					      throw er
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
/* 743 */,
 | 
					/* 743 */,
 | 
				
			||||||
@ -60184,66 +59893,59 @@ function gather(octokit, results, iterator, mapFn) {
 | 
				
			|||||||
/* 811 */,
 | 
					/* 811 */,
 | 
				
			||||||
/* 812 */,
 | 
					/* 812 */,
 | 
				
			||||||
/* 813 */
 | 
					/* 813 */
 | 
				
			||||||
/***/ (function(module, __unusedexports, __webpack_require__) {
 | 
					/***/ (function(__unusedmodule, exports) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var fs = __webpack_require__(747)
 | 
					"use strict";
 | 
				
			||||||
var core
 | 
					
 | 
				
			||||||
if (process.platform === 'win32' || global.TESTING_WINDOWS) {
 | 
					
 | 
				
			||||||
  core = __webpack_require__(818)
 | 
					Object.defineProperty(exports, '__esModule', { value: true });
 | 
				
			||||||
} else {
 | 
					
 | 
				
			||||||
  core = __webpack_require__(197)
 | 
					async function auth(token) {
 | 
				
			||||||
 | 
					  const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth";
 | 
				
			||||||
 | 
					  return {
 | 
				
			||||||
 | 
					    type: "token",
 | 
				
			||||||
 | 
					    token: token,
 | 
				
			||||||
 | 
					    tokenType
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = isexe
 | 
					/**
 | 
				
			||||||
isexe.sync = sync
 | 
					 * Prefix token for usage in the Authorization header
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
function isexe (path, options, cb) {
 | 
					 * @param token OAuth token or JSON Web Token
 | 
				
			||||||
  if (typeof options === 'function') {
 | 
					 */
 | 
				
			||||||
    cb = options
 | 
					function withAuthorizationPrefix(token) {
 | 
				
			||||||
    options = {}
 | 
					  if (token.split(/\./).length === 3) {
 | 
				
			||||||
 | 
					    return `bearer ${token}`;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!cb) {
 | 
					  return `token ${token}`;
 | 
				
			||||||
    if (typeof Promise !== 'function') {
 | 
					 | 
				
			||||||
      throw new TypeError('callback not provided')
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return new Promise(function (resolve, reject) {
 | 
					 | 
				
			||||||
      isexe(path, options || {}, function (er, is) {
 | 
					 | 
				
			||||||
        if (er) {
 | 
					 | 
				
			||||||
          reject(er)
 | 
					 | 
				
			||||||
        } else {
 | 
					 | 
				
			||||||
          resolve(is)
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      })
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  core(path, options || {}, function (er, is) {
 | 
					 | 
				
			||||||
    // ignore EACCES because that just means we aren't allowed to run it
 | 
					 | 
				
			||||||
    if (er) {
 | 
					 | 
				
			||||||
      if (er.code === 'EACCES' || options && options.ignoreErrors) {
 | 
					 | 
				
			||||||
        er = null
 | 
					 | 
				
			||||||
        is = false
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    cb(er, is)
 | 
					 | 
				
			||||||
  })
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function sync (path, options) {
 | 
					async function hook(token, request, route, parameters) {
 | 
				
			||||||
  // my kingdom for a filtered catch
 | 
					  const endpoint = request.endpoint.merge(route, parameters);
 | 
				
			||||||
  try {
 | 
					  endpoint.headers.authorization = withAuthorizationPrefix(token);
 | 
				
			||||||
    return core.sync(path, options || {})
 | 
					  return request(endpoint);
 | 
				
			||||||
  } catch (er) {
 | 
					 | 
				
			||||||
    if (options && options.ignoreErrors || er.code === 'EACCES') {
 | 
					 | 
				
			||||||
      return false
 | 
					 | 
				
			||||||
    } else {
 | 
					 | 
				
			||||||
      throw er
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const createTokenAuth = function createTokenAuth(token) {
 | 
				
			||||||
 | 
					  if (!token) {
 | 
				
			||||||
 | 
					    throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  if (typeof token !== "string") {
 | 
				
			||||||
 | 
					    throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  token = token.replace(/^(token|bearer) +/i, "");
 | 
				
			||||||
 | 
					  return Object.assign(auth.bind(null, token), {
 | 
				
			||||||
 | 
					    hook: hook.bind(null, token)
 | 
				
			||||||
 | 
					  });
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					exports.createTokenAuth = createTokenAuth;
 | 
				
			||||||
 | 
					//# sourceMappingURL=index.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
/* 814 */
 | 
					/* 814 */
 | 
				
			||||||
@ -60258,7 +59960,7 @@ var isWindows = process.platform === 'win32' ||
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
var path = __webpack_require__(622)
 | 
					var path = __webpack_require__(622)
 | 
				
			||||||
var COLON = isWindows ? ';' : ':'
 | 
					var COLON = isWindows ? ';' : ':'
 | 
				
			||||||
var isexe = __webpack_require__(813)
 | 
					var isexe = __webpack_require__(742)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function getNotFoundError (cmd) {
 | 
					function getNotFoundError (cmd) {
 | 
				
			||||||
  var er = new Error('not found: ' + cmd)
 | 
					  var er = new Error('not found: ' + cmd)
 | 
				
			||||||
@ -66217,11 +65919,12 @@ module.exports = function(fn) {
 | 
				
			|||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
/* 949 */,
 | 
					/* 949 */,
 | 
				
			||||||
/* 950 */
 | 
					/* 950 */
 | 
				
			||||||
/***/ (function(__unusedmodule, exports) {
 | 
					/***/ (function(__unusedmodule, exports, __webpack_require__) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"use strict";
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
 | 
					const url = __webpack_require__(835);
 | 
				
			||||||
function getProxyUrl(reqUrl) {
 | 
					function getProxyUrl(reqUrl) {
 | 
				
			||||||
    let usingSsl = reqUrl.protocol === 'https:';
 | 
					    let usingSsl = reqUrl.protocol === 'https:';
 | 
				
			||||||
    let proxyUrl;
 | 
					    let proxyUrl;
 | 
				
			||||||
@ -66230,13 +65933,15 @@ function getProxyUrl(reqUrl) {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    let proxyVar;
 | 
					    let proxyVar;
 | 
				
			||||||
    if (usingSsl) {
 | 
					    if (usingSsl) {
 | 
				
			||||||
        proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY'];
 | 
					        proxyVar = process.env["https_proxy"] ||
 | 
				
			||||||
 | 
					            process.env["HTTPS_PROXY"];
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    else {
 | 
					    else {
 | 
				
			||||||
        proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY'];
 | 
					        proxyVar = process.env["http_proxy"] ||
 | 
				
			||||||
 | 
					            process.env["HTTP_PROXY"];
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if (proxyVar) {
 | 
					    if (proxyVar) {
 | 
				
			||||||
        proxyUrl = new URL(proxyVar);
 | 
					        proxyUrl = url.parse(proxyVar);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return proxyUrl;
 | 
					    return proxyUrl;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -66245,7 +65950,7 @@ function checkBypass(reqUrl) {
 | 
				
			|||||||
    if (!reqUrl.hostname) {
 | 
					    if (!reqUrl.hostname) {
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
 | 
					    let noProxy = process.env["no_proxy"] || process.env["NO_PROXY"] || '';
 | 
				
			||||||
    if (!noProxy) {
 | 
					    if (!noProxy) {
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -66266,10 +65971,7 @@ function checkBypass(reqUrl) {
 | 
				
			|||||||
        upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
 | 
					        upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    // Compare request host against noproxy
 | 
					    // Compare request host against noproxy
 | 
				
			||||||
    for (let upperNoProxyItem of noProxy
 | 
					    for (let upperNoProxyItem of noProxy.split(',').map(x => x.trim().toUpperCase()).filter(x => x)) {
 | 
				
			||||||
        .split(',')
 | 
					 | 
				
			||||||
        .map(x => x.trim().toUpperCase())
 | 
					 | 
				
			||||||
        .filter(x => x)) {
 | 
					 | 
				
			||||||
        if (upperReqHosts.some(x => x === upperNoProxyItem)) {
 | 
					        if (upperReqHosts.some(x => x === upperNoProxyItem)) {
 | 
				
			||||||
            return true;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										11
									
								
								src/main.ts
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/main.ts
									
									
									
									
									
								
							@ -74,15 +74,12 @@ function isGhes(): boolean {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function resolveVersionInput(): string {
 | 
					function resolveVersionInput(): string {
 | 
				
			||||||
 
 | 
					  if (!(core.getInput('node-version') || core.getInput('version'))) {
 | 
				
			||||||
  if(!(core.getInput('node-version') || core.getInput('version')))
 | 
					    core.error('No specified file exists');
 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    core.error('No specified file exists')
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if(core.getInput('node-version') && core.getInput('version'))
 | 
					  if (core.getInput('node-version') && core.getInput('version')) {
 | 
				
			||||||
  {
 | 
					    core.warning('Both version and node-version-file are specified');
 | 
				
			||||||
    core.warning('Both version and node-version-file are specified')
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  let version = core.getInput('node-version') || core.getInput('version');
 | 
					  let version = core.getInput('node-version') || core.getInput('version');
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user