mirror of
https://github.com/github/codeql-action.git
synced 2026-10-31 09:59:43 +00:00
Merge pull request #3563 from github/mbg/private-registry/oidc
Accept OIDC configurations in `start-proxy`
This commit is contained in:
38
lib/init-action.js
generated
38
lib/init-action.js
generated
@@ -53438,8 +53438,8 @@ var require_object = __commonJS({
|
||||
"node_modules/@typespec/ts-http-runtime/dist/commonjs/util/object.js"(exports2) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||
exports2.isObject = isObject2;
|
||||
function isObject2(input) {
|
||||
exports2.isObject = isObject3;
|
||||
function isObject3(input) {
|
||||
return typeof input === "object" && input !== null && !Array.isArray(input) && !(input instanceof RegExp) && !(input instanceof Date);
|
||||
}
|
||||
}
|
||||
@@ -57925,7 +57925,7 @@ var require_commonjs4 = __commonJS({
|
||||
exports2.computeSha256Hmac = computeSha256Hmac;
|
||||
exports2.getRandomIntegerInclusive = getRandomIntegerInclusive;
|
||||
exports2.isError = isError;
|
||||
exports2.isObject = isObject2;
|
||||
exports2.isObject = isObject3;
|
||||
exports2.randomUUID = randomUUID2;
|
||||
exports2.uint8ArrayToString = uint8ArrayToString;
|
||||
exports2.stringToUint8Array = stringToUint8Array;
|
||||
@@ -57972,7 +57972,7 @@ var require_commonjs4 = __commonJS({
|
||||
function isError(e) {
|
||||
return tspRuntime.isError(e);
|
||||
}
|
||||
function isObject2(input) {
|
||||
function isObject3(input) {
|
||||
return tspRuntime.isObject(input);
|
||||
}
|
||||
function randomUUID2() {
|
||||
@@ -99984,7 +99984,7 @@ var require_follow_redirects = __commonJS({
|
||||
if (this._ending) {
|
||||
throw new WriteAfterEndError();
|
||||
}
|
||||
if (!isString2(data) && !isBuffer(data)) {
|
||||
if (!isString3(data) && !isBuffer(data)) {
|
||||
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
||||
}
|
||||
if (isFunction(encoding)) {
|
||||
@@ -100239,7 +100239,7 @@ var require_follow_redirects = __commonJS({
|
||||
function request2(input, options, callback) {
|
||||
if (isURL(input)) {
|
||||
input = spreadUrlObject(input);
|
||||
} else if (isString2(input)) {
|
||||
} else if (isString3(input)) {
|
||||
input = spreadUrlObject(parseUrl2(input));
|
||||
} else {
|
||||
callback = options;
|
||||
@@ -100255,7 +100255,7 @@ var require_follow_redirects = __commonJS({
|
||||
maxBodyLength: exports3.maxBodyLength
|
||||
}, input, options);
|
||||
options.nativeProtocols = nativeProtocols;
|
||||
if (!isString2(options.host) && !isString2(options.hostname)) {
|
||||
if (!isString3(options.host) && !isString3(options.hostname)) {
|
||||
options.hostname = "::1";
|
||||
}
|
||||
assert.equal(options.protocol, protocol, "protocol mismatch");
|
||||
@@ -100282,7 +100282,7 @@ var require_follow_redirects = __commonJS({
|
||||
parsed = new URL2(input);
|
||||
} else {
|
||||
parsed = validateUrl(url.parse(input));
|
||||
if (!isString2(parsed.protocol)) {
|
||||
if (!isString3(parsed.protocol)) {
|
||||
throw new InvalidUrlError({ input });
|
||||
}
|
||||
}
|
||||
@@ -100354,11 +100354,11 @@ var require_follow_redirects = __commonJS({
|
||||
request2.destroy(error3);
|
||||
}
|
||||
function isSubdomain(subdomain, domain) {
|
||||
assert(isString2(subdomain) && isString2(domain));
|
||||
assert(isString3(subdomain) && isString3(domain));
|
||||
var dot = subdomain.length - domain.length - 1;
|
||||
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
||||
}
|
||||
function isString2(value) {
|
||||
function isString3(value) {
|
||||
return typeof value === "string" || value instanceof String;
|
||||
}
|
||||
function isFunction(value) {
|
||||
@@ -103107,6 +103107,14 @@ var semver = __toESM(require_semver2());
|
||||
var maximumVersion = "3.21";
|
||||
var minimumVersion = "3.14";
|
||||
|
||||
// src/json/index.ts
|
||||
function isObject2(value) {
|
||||
return typeof value === "object" && value !== null && !Array.isArray(value);
|
||||
}
|
||||
function isString(value) {
|
||||
return typeof value === "string";
|
||||
}
|
||||
|
||||
// src/util.ts
|
||||
var BASE_DATABASE_OIDS_FILE_NAME = "base-database-oids.json";
|
||||
var BROKEN_VERSIONS = ["0.0.0-20211207"];
|
||||
@@ -103420,7 +103428,7 @@ var HTTPError = class extends Error {
|
||||
var ConfigurationError = class extends Error {
|
||||
};
|
||||
function asHTTPError(arg) {
|
||||
if (typeof arg !== "object" || arg === null || typeof arg.message !== "string") {
|
||||
if (!isObject2(arg) || !isString(arg.message)) {
|
||||
return void 0;
|
||||
}
|
||||
if (Number.isInteger(arg.status)) {
|
||||
@@ -104300,16 +104308,16 @@ var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => {
|
||||
RepositoryPropertyName2["FILE_COVERAGE_ON_PRS"] = "github-codeql-file-coverage-on-prs";
|
||||
return RepositoryPropertyName2;
|
||||
})(RepositoryPropertyName || {});
|
||||
function isString(value) {
|
||||
function isString2(value) {
|
||||
return typeof value === "string";
|
||||
}
|
||||
var stringProperty = {
|
||||
validate: isString,
|
||||
validate: isString2,
|
||||
parse: parseStringRepositoryProperty
|
||||
};
|
||||
var booleanProperty = {
|
||||
// The value from the API should come as a string, which we then parse into a boolean.
|
||||
validate: isString,
|
||||
validate: isString2,
|
||||
parse: parseBooleanRepositoryProperty
|
||||
};
|
||||
var repositoryPropertyParsers = {
|
||||
@@ -105895,7 +105903,7 @@ async function getOverlayStatus(codeql, languages, diskUsage, logger) {
|
||||
}
|
||||
const contents = await fs5.promises.readFile(statusFile, "utf-8");
|
||||
const parsed = JSON.parse(contents);
|
||||
if (typeof parsed !== "object" || parsed === null || typeof parsed["attemptedToBuildOverlayBaseDatabase"] !== "boolean" || typeof parsed["builtOverlayBaseDatabase"] !== "boolean") {
|
||||
if (!isObject2(parsed) || typeof parsed["attemptedToBuildOverlayBaseDatabase"] !== "boolean" || typeof parsed["builtOverlayBaseDatabase"] !== "boolean") {
|
||||
logger.debug(
|
||||
"Ignoring overlay status cache entry with unexpected format."
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user