mirror of
https://github.com/github/codeql-action.git
synced 2026-10-31 09:59:43 +00:00
Add repo property to override codeql-cli version
This commit is contained in:
260
lib/init-action-post.js
generated
260
lib/init-action-post.js
generated
@@ -3842,18 +3842,18 @@ var require_webidl = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context5) {
|
||||
const plural = context5.types.length === 1 ? "" : " one of";
|
||||
const message = `${context5.argument} could not be converted to${plural}: ${context5.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context4.prefix,
|
||||
header: context5.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
webidl.errors.invalidArgument = function(context5) {
|
||||
return webidl.errors.exception({
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
header: context5.prefix,
|
||||
message: `"${context5.value}" is an invalid ${context5.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -9849,17 +9849,17 @@ var require_api_request = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context5, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -9896,7 +9896,7 @@ var require_api_request = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -10065,17 +10065,17 @@ var require_api_stream = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context5, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -10103,7 +10103,7 @@ var require_api_stream = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -10295,7 +10295,7 @@ var require_api_pipeline = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -10304,10 +10304,10 @@ var require_api_pipeline = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
const { opaque, handler: handler2, context: context5 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10325,7 +10325,7 @@ var require_api_pipeline = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -10409,7 +10409,7 @@ var require_api_upgrade = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -10423,7 +10423,7 @@ var require_api_upgrade = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
const { callback, opaque, context: context5 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -10431,7 +10431,7 @@ var require_api_upgrade = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -10500,20 +10500,20 @@ var require_api_connect = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
const { callback, opaque, context: context5 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -10525,7 +10525,7 @@ var require_api_connect = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -24840,18 +24840,18 @@ var require_webidl2 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context5) {
|
||||
const plural = context5.types.length === 1 ? "" : " one of";
|
||||
const message = `${context5.argument} could not be converted to${plural}: ${context5.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context4.prefix,
|
||||
header: context5.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
webidl.errors.invalidArgument = function(context5) {
|
||||
return webidl.errors.exception({
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
header: context5.prefix,
|
||||
message: `"${context5.value}" is an invalid ${context5.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts) {
|
||||
@@ -30847,17 +30847,17 @@ var require_api_request2 = __commonJS({
|
||||
}
|
||||
}
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context5, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -30894,7 +30894,7 @@ var require_api_request2 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body: res,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -31063,17 +31063,17 @@ var require_api_stream2 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context5, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -31101,7 +31101,7 @@ var require_api_stream2 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -31293,7 +31293,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
const { ret, res } = this;
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
@@ -31302,10 +31302,10 @@ var require_api_pipeline2 = __commonJS({
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
assert(!ret.destroyed);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
const { opaque, handler: handler2, context: context5 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31323,7 +31323,7 @@ var require_api_pipeline2 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -31407,7 +31407,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
@@ -31421,7 +31421,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
assert(statusCode === 101);
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
const { callback, opaque, context: context5 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -31429,7 +31429,7 @@ var require_api_upgrade2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -31498,20 +31498,20 @@ var require_api_connect2 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (this.reason) {
|
||||
abort(this.reason);
|
||||
return;
|
||||
}
|
||||
assert(this.callback);
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
const { callback, opaque, context: context5 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -31523,7 +31523,7 @@ var require_api_connect2 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -40178,8 +40178,8 @@ function isDefined(value) {
|
||||
function isKeyOperator(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues(context4, operator, key, modifier) {
|
||||
var value = context4[key], result = [];
|
||||
function getValues(context5, operator, key, modifier) {
|
||||
var value = context5[key], result = [];
|
||||
if (isDefined(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -40243,7 +40243,7 @@ function parseUrl(template) {
|
||||
expand: expand.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand(template, context4) {
|
||||
function expand(template, context5) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -40257,7 +40257,7 @@ function expand(template, context4) {
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues(context4, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues(context5, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -52177,14 +52177,14 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
||||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||||
var _2, done = false;
|
||||
for (var i = decorators.length - 1; i >= 0; i--) {
|
||||
var context4 = {};
|
||||
for (var p in contextIn) context4[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context4.access[p] = contextIn.access[p];
|
||||
context4.addInitializer = function(f) {
|
||||
var context5 = {};
|
||||
for (var p in contextIn) context5[p] = p === "access" ? {} : contextIn[p];
|
||||
for (var p in contextIn.access) context5.access[p] = contextIn.access[p];
|
||||
context5.addInitializer = function(f) {
|
||||
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
||||
extraInitializers.push(accept(f || null));
|
||||
};
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context4);
|
||||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context5);
|
||||
if (kind === "accessor") {
|
||||
if (result === void 0) continue;
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
@@ -52911,19 +52911,19 @@ var require_logger = __commonJS({
|
||||
logger: clientLogger
|
||||
};
|
||||
}
|
||||
var context4 = createLoggerContext({
|
||||
var context5 = createLoggerContext({
|
||||
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
||||
namespace: "typeSpecRuntime"
|
||||
});
|
||||
exports2.TypeSpecRuntimeLogger = context4.logger;
|
||||
exports2.TypeSpecRuntimeLogger = context5.logger;
|
||||
function setLogLevel(logLevel) {
|
||||
context4.setLogLevel(logLevel);
|
||||
context5.setLogLevel(logLevel);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context4.getLogLevel();
|
||||
return context5.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context4.createClientLogger(namespace);
|
||||
return context5.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -57169,19 +57169,19 @@ var require_commonjs2 = __commonJS({
|
||||
exports2.getLogLevel = getLogLevel;
|
||||
exports2.createClientLogger = createClientLogger;
|
||||
var logger_1 = require_internal();
|
||||
var context4 = (0, logger_1.createLoggerContext)({
|
||||
var context5 = (0, logger_1.createLoggerContext)({
|
||||
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
||||
namespace: "azure"
|
||||
});
|
||||
exports2.AzureLogger = context4.logger;
|
||||
exports2.AzureLogger = context5.logger;
|
||||
function setLogLevel(level) {
|
||||
context4.setLogLevel(level);
|
||||
context5.setLogLevel(level);
|
||||
}
|
||||
function getLogLevel() {
|
||||
return context4.getLogLevel();
|
||||
return context5.getLogLevel();
|
||||
}
|
||||
function createClientLogger(namespace) {
|
||||
return context4.createClientLogger(namespace);
|
||||
return context5.createClientLogger(namespace);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -58091,14 +58091,14 @@ var require_tracingContext = __commonJS({
|
||||
namespace: /* @__PURE__ */ Symbol.for("@azure/core-tracing namespace")
|
||||
};
|
||||
function createTracingContext(options = {}) {
|
||||
let context4 = new TracingContextImpl(options.parentContext);
|
||||
let context5 = new TracingContextImpl(options.parentContext);
|
||||
if (options.span) {
|
||||
context4 = context4.setValue(exports2.knownContextKeys.span, options.span);
|
||||
context5 = context5.setValue(exports2.knownContextKeys.span, options.span);
|
||||
}
|
||||
if (options.namespace) {
|
||||
context4 = context4.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
context5 = context5.setValue(exports2.knownContextKeys.namespace, options.namespace);
|
||||
}
|
||||
return context4;
|
||||
return context5;
|
||||
}
|
||||
var TracingContextImpl = class _TracingContextImpl {
|
||||
_contextMap;
|
||||
@@ -58236,8 +58236,8 @@ var require_tracingClient = __commonJS({
|
||||
span.end();
|
||||
}
|
||||
}
|
||||
function withContext(context4, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context4, callback, ...callbackArgs);
|
||||
function withContext(context5, callback, ...callbackArgs) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().withContext(context5, callback, ...callbackArgs);
|
||||
}
|
||||
function parseTraceparentHeader(traceparentHeader) {
|
||||
return (0, instrumenter_js_1.getInstrumenter)().parseTraceparentHeader(traceparentHeader);
|
||||
@@ -106882,8 +106882,8 @@ var require_graceful_fs = __commonJS({
|
||||
}
|
||||
function noop3() {
|
||||
}
|
||||
function publishQueue(context4, queue2) {
|
||||
Object.defineProperty(context4, gracefulQueue, {
|
||||
function publishQueue(context5, queue2) {
|
||||
Object.defineProperty(context5, gracefulQueue, {
|
||||
get: function() {
|
||||
return queue2;
|
||||
}
|
||||
@@ -119049,7 +119049,7 @@ var require_commonjs21 = __commonJS({
|
||||
free: c.#free,
|
||||
// methods
|
||||
isBackgroundFetch: (p) => c.#isBackgroundFetch(p),
|
||||
backgroundFetch: (k, index, options, context4) => c.#backgroundFetch(k, index, options, context4),
|
||||
backgroundFetch: (k, index, options, context5) => c.#backgroundFetch(k, index, options, context5),
|
||||
moveToTail: (index) => c.#moveToTail(index),
|
||||
indexes: (options) => c.#indexes(options),
|
||||
rindexes: (options) => c.#rindexes(options),
|
||||
@@ -119852,7 +119852,7 @@ var require_commonjs21 = __commonJS({
|
||||
const v = this.#valList[index];
|
||||
return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
||||
}
|
||||
#backgroundFetch(k, index, options, context4) {
|
||||
#backgroundFetch(k, index, options, context5) {
|
||||
const v = index === void 0 ? void 0 : this.#valList[index];
|
||||
if (this.#isBackgroundFetch(v)) {
|
||||
return v;
|
||||
@@ -119865,7 +119865,7 @@ var require_commonjs21 = __commonJS({
|
||||
const fetchOpts = {
|
||||
signal: ac.signal,
|
||||
options,
|
||||
context: context4
|
||||
context: context5
|
||||
};
|
||||
const cb = (v2, updateCache = false) => {
|
||||
const { aborted } = ac.signal;
|
||||
@@ -119982,7 +119982,7 @@ var require_commonjs21 = __commonJS({
|
||||
allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
|
||||
ignoreFetchAbort = this.ignoreFetchAbort,
|
||||
allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
|
||||
context: context4,
|
||||
context: context5,
|
||||
forceRefresh = false,
|
||||
status,
|
||||
signal
|
||||
@@ -120017,7 +120017,7 @@ var require_commonjs21 = __commonJS({
|
||||
if (index === void 0) {
|
||||
if (status)
|
||||
status.fetch = "miss";
|
||||
const p = this.#backgroundFetch(k, index, options, context4);
|
||||
const p = this.#backgroundFetch(k, index, options, context5);
|
||||
return p.__returned = p;
|
||||
} else {
|
||||
const v = this.#valList[index];
|
||||
@@ -120042,7 +120042,7 @@ var require_commonjs21 = __commonJS({
|
||||
this.#statusTTL(status, index);
|
||||
return v;
|
||||
}
|
||||
const p = this.#backgroundFetch(k, index, options, context4);
|
||||
const p = this.#backgroundFetch(k, index, options, context5);
|
||||
const hasStale = p.__staleWhileFetching !== void 0;
|
||||
const staleVal = hasStale && allowStale;
|
||||
if (status) {
|
||||
@@ -120064,13 +120064,13 @@ var require_commonjs21 = __commonJS({
|
||||
if (!memoMethod) {
|
||||
throw new Error("no memoMethod provided to constructor");
|
||||
}
|
||||
const { context: context4, forceRefresh, ...options } = memoOptions;
|
||||
const { context: context5, forceRefresh, ...options } = memoOptions;
|
||||
const v = this.get(k, options);
|
||||
if (!forceRefresh && v !== void 0)
|
||||
return v;
|
||||
const vv = memoMethod(k, v, {
|
||||
options,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
this.set(k, vv, options);
|
||||
return vv;
|
||||
@@ -132964,18 +132964,18 @@ var require_webidl3 = __commonJS({
|
||||
webidl.errors.exception = function(message) {
|
||||
return new TypeError(`${message.header}: ${message.message}`);
|
||||
};
|
||||
webidl.errors.conversionFailed = function(context4) {
|
||||
const plural = context4.types.length === 1 ? "" : " one of";
|
||||
const message = `${context4.argument} could not be converted to${plural}: ${context4.types.join(", ")}.`;
|
||||
webidl.errors.conversionFailed = function(context5) {
|
||||
const plural = context5.types.length === 1 ? "" : " one of";
|
||||
const message = `${context5.argument} could not be converted to${plural}: ${context5.types.join(", ")}.`;
|
||||
return webidl.errors.exception({
|
||||
header: context4.prefix,
|
||||
header: context5.prefix,
|
||||
message
|
||||
});
|
||||
};
|
||||
webidl.errors.invalidArgument = function(context4) {
|
||||
webidl.errors.invalidArgument = function(context5) {
|
||||
return webidl.errors.exception({
|
||||
header: context4.prefix,
|
||||
message: `"${context4.value}" is an invalid ${context4.type}.`
|
||||
header: context5.prefix,
|
||||
message: `"${context5.value}" is an invalid ${context5.type}.`
|
||||
});
|
||||
};
|
||||
webidl.brandCheck = function(V, I, opts = void 0) {
|
||||
@@ -138301,15 +138301,15 @@ var require_api_request3 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { callback, opaque, abort, context: context4, responseHeaders, highWaterMark } = this;
|
||||
const { callback, opaque, abort, context: context5, responseHeaders, highWaterMark } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -138336,7 +138336,7 @@ var require_api_request3 = __commonJS({
|
||||
trailers: this.trailers,
|
||||
opaque,
|
||||
body,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -138456,15 +138456,15 @@ var require_api_stream3 = __commonJS({
|
||||
}
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
|
||||
const { factory, opaque, context: context4, callback, responseHeaders } = this;
|
||||
const { factory, opaque, context: context5, callback, responseHeaders } = this;
|
||||
const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
@@ -138492,7 +138492,7 @@ var require_api_stream3 = __commonJS({
|
||||
statusCode,
|
||||
headers,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
|
||||
throw new InvalidReturnValueError("expected Writable");
|
||||
@@ -138684,17 +138684,17 @@ var require_api_pipeline3 = __commonJS({
|
||||
this.res = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
const { ret, res } = this;
|
||||
assert(!res, "pipeline cannot be retried");
|
||||
if (ret.destroyed) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders(statusCode, rawHeaders, resume) {
|
||||
const { opaque, handler: handler2, context: context4 } = this;
|
||||
const { opaque, handler: handler2, context: context5 } = this;
|
||||
if (statusCode < 200) {
|
||||
if (this.onInfo) {
|
||||
const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
|
||||
@@ -138712,7 +138712,7 @@ var require_api_pipeline3 = __commonJS({
|
||||
headers,
|
||||
opaque,
|
||||
body: this.res,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
} catch (err) {
|
||||
this.res.on("error", util.nop);
|
||||
@@ -138796,7 +138796,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
this.context = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
@@ -138807,7 +138807,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
throw new SocketError("bad upgrade", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
const { callback, opaque, context: context5 } = this;
|
||||
assert.strictEqual(statusCode, 101);
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
@@ -138816,7 +138816,7 @@ var require_api_upgrade3 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -138884,18 +138884,18 @@ var require_api_connect3 = __commonJS({
|
||||
this.abort = null;
|
||||
addSignal(this, signal);
|
||||
}
|
||||
onConnect(abort, context4) {
|
||||
onConnect(abort, context5) {
|
||||
if (!this.callback) {
|
||||
throw new RequestAbortedError();
|
||||
}
|
||||
this.abort = abort;
|
||||
this.context = context4;
|
||||
this.context = context5;
|
||||
}
|
||||
onHeaders() {
|
||||
throw new SocketError("bad connect", null);
|
||||
}
|
||||
onUpgrade(statusCode, rawHeaders, socket) {
|
||||
const { callback, opaque, context: context4 } = this;
|
||||
const { callback, opaque, context: context5 } = this;
|
||||
removeSignal(this);
|
||||
this.callback = null;
|
||||
let headers = rawHeaders;
|
||||
@@ -138907,7 +138907,7 @@ var require_api_connect3 = __commonJS({
|
||||
headers,
|
||||
socket,
|
||||
opaque,
|
||||
context: context4
|
||||
context: context5
|
||||
});
|
||||
}
|
||||
onError(err) {
|
||||
@@ -147026,8 +147026,8 @@ var require_dist_node2 = __commonJS({
|
||||
function isKeyOperator2(operator) {
|
||||
return operator === ";" || operator === "&" || operator === "?";
|
||||
}
|
||||
function getValues2(context4, operator, key, modifier) {
|
||||
var value = context4[key], result = [];
|
||||
function getValues2(context5, operator, key, modifier) {
|
||||
var value = context5[key], result = [];
|
||||
if (isDefined3(value) && value !== "") {
|
||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||
value = value.toString();
|
||||
@@ -147091,7 +147091,7 @@ var require_dist_node2 = __commonJS({
|
||||
expand: expand2.bind(null, template)
|
||||
};
|
||||
}
|
||||
function expand2(template, context4) {
|
||||
function expand2(template, context5) {
|
||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||
template = template.replace(
|
||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||
@@ -147105,7 +147105,7 @@ var require_dist_node2 = __commonJS({
|
||||
}
|
||||
expression.split(/,/g).forEach(function(variable) {
|
||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||
values.push(getValues2(context4, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
values.push(getValues2(context5, operator, tmp[1], tmp[2] || tmp[3]));
|
||||
});
|
||||
if (operator && operator !== "+") {
|
||||
var separator = ",";
|
||||
@@ -152557,7 +152557,7 @@ var require_download_artifact = __commonJS({
|
||||
var promises_1 = __importDefault2(require("fs/promises"));
|
||||
var crypto2 = __importStar2(require("crypto"));
|
||||
var stream2 = __importStar2(require("stream"));
|
||||
var github4 = __importStar2(require_github2());
|
||||
var github5 = __importStar2(require_github2());
|
||||
var core19 = __importStar2(require_core());
|
||||
var httpClient = __importStar2(require_lib());
|
||||
var unzip_stream_1 = __importDefault2(require_unzip());
|
||||
@@ -152645,7 +152645,7 @@ var require_download_artifact = __commonJS({
|
||||
function downloadArtifactPublic(artifactId, repositoryOwner, repositoryName, token, options) {
|
||||
return __awaiter2(this, void 0, void 0, function* () {
|
||||
const downloadPath = yield resolveOrCreateDirectory(options === null || options === void 0 ? void 0 : options.path);
|
||||
const api = github4.getOctokit(token);
|
||||
const api = github5.getOctokit(token);
|
||||
let digestMismatch = false;
|
||||
core19.info(`Downloading artifact '${artifactId}' from '${repositoryOwner}/${repositoryName}'`);
|
||||
const { headers, status } = yield api.rest.actions.downloadArtifact({
|
||||
@@ -152966,8 +152966,8 @@ var require_get_artifact = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github4 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield github4.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}", {
|
||||
const github5 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield github5.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -153090,9 +153090,9 @@ var require_delete_artifact = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github4 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const github5 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const getArtifactResp = yield (0, get_artifact_1.getArtifactPublic)(artifactName, workflowRunId, repositoryOwner, repositoryName, token);
|
||||
const deleteArtifactResp = yield github4.rest.actions.deleteArtifact({
|
||||
const deleteArtifactResp = yield github5.rest.actions.deleteArtifact({
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
artifact_id: getArtifactResp.artifact.id
|
||||
@@ -153199,9 +153199,9 @@ var require_list_artifacts = __commonJS({
|
||||
retry: retryOpts,
|
||||
request: requestOpts
|
||||
};
|
||||
const github4 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
const github5 = (0, github_1.getOctokit)(token, opts, plugin_retry_1.retry, plugin_request_log_1.requestLog);
|
||||
let currentPageNumber = 1;
|
||||
const { data: listArtifactResponse } = yield github4.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
const { data: listArtifactResponse } = yield github5.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -153226,7 +153226,7 @@ var require_list_artifacts = __commonJS({
|
||||
currentPageNumber++;
|
||||
for (currentPageNumber; currentPageNumber <= numberOfPages; currentPageNumber++) {
|
||||
(0, core_1.debug)(`Fetching page ${currentPageNumber} of artifact list`);
|
||||
const { data: listArtifactResponse2 } = yield github4.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
const { data: listArtifactResponse2 } = yield github5.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", {
|
||||
owner: repositoryOwner,
|
||||
repo: repositoryName,
|
||||
run_id: workflowRunId,
|
||||
@@ -165472,10 +165472,12 @@ var jsonschema = __toESM(require_lib2());
|
||||
var semver2 = __toESM(require_semver2());
|
||||
|
||||
// src/feature-flags/properties.ts
|
||||
var github2 = __toESM(require_github());
|
||||
var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => {
|
||||
RepositoryPropertyName2["DISABLE_OVERLAY"] = "github-codeql-disable-overlay";
|
||||
RepositoryPropertyName2["EXTRA_QUERIES"] = "github-codeql-extra-queries";
|
||||
RepositoryPropertyName2["FILE_COVERAGE_ON_PRS"] = "github-codeql-file-coverage-on-prs";
|
||||
RepositoryPropertyName2["TOOLS"] = "github-codeql-tools";
|
||||
return RepositoryPropertyName2;
|
||||
})(RepositoryPropertyName || {});
|
||||
var KNOWN_REPOSITORY_PROPERTY_NAMES = new Set(
|
||||
@@ -168760,7 +168762,7 @@ async function createDatabaseBundleCli(codeql, config, language) {
|
||||
// src/init-action-post-helper.ts
|
||||
var fs20 = __toESM(require("fs"));
|
||||
var import_path3 = __toESM(require("path"));
|
||||
var github3 = __toESM(require_github());
|
||||
var github4 = __toESM(require_github());
|
||||
|
||||
// src/upload-lib.ts
|
||||
var fs18 = __toESM(require("fs"));
|
||||
@@ -169895,7 +169897,7 @@ async function addFingerprints(sarifLog, sourceRoot, logger) {
|
||||
// src/init.ts
|
||||
var core14 = __toESM(require_core());
|
||||
var toolrunner4 = __toESM(require_toolrunner());
|
||||
var github2 = __toESM(require_github());
|
||||
var github3 = __toESM(require_github());
|
||||
var io6 = __toESM(require_io());
|
||||
async function initCodeQL(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger) {
|
||||
logger.startGroup("Setup CodeQL tools");
|
||||
@@ -170832,7 +170834,7 @@ async function uploadFailureInfo(uploadAllAvailableDebugArtifacts, printDebugLog
|
||||
);
|
||||
}
|
||||
if (process.env["CODEQL_ACTION_EXPECT_UPLOAD_FAILED_SARIF"] === "true") {
|
||||
if (!github3.context.payload.pull_request?.head.repo.fork) {
|
||||
if (!github4.context.payload.pull_request?.head.repo.fork) {
|
||||
await removeUploadedSarif(uploadFailedSarifResult, logger);
|
||||
} else {
|
||||
logger.info(
|
||||
|
||||
Reference in New Issue
Block a user