mirror of
https://github.com/github/codeql-action.git
synced 2026-04-26 16:58:47 +00:00
Extract version number to constant
This commit is contained in:
Generated
+11
-2
@@ -81567,6 +81567,11 @@ var require_follow_redirects = __commonJS({
|
||||
});
|
||||
|
||||
// src/init-action.ts
|
||||
var init_action_exports = {};
|
||||
__export(init_action_exports, {
|
||||
CODEQL_VERSION_JAR_MINIMIZATION: () => CODEQL_VERSION_JAR_MINIMIZATION
|
||||
});
|
||||
module.exports = __toCommonJS(init_action_exports);
|
||||
var fs14 = __toESM(require("fs"));
|
||||
var path15 = __toESM(require("path"));
|
||||
var core13 = __toESM(require_core());
|
||||
@@ -89876,6 +89881,7 @@ var internal2 = {
|
||||
};
|
||||
|
||||
// src/init-action.ts
|
||||
var CODEQL_VERSION_JAR_MINIMIZATION = "2.23.0";
|
||||
async function sendStartingStatusReport(startedAt, config, logger) {
|
||||
const statusReportBase = await createStatusReportBase(
|
||||
"init" /* Init */,
|
||||
@@ -90266,8 +90272,7 @@ exec ${goBinaryPath} "$@"`
|
||||
logger.debug(
|
||||
`${"CODEQL_EXTRACTOR_JAVA_OPTION_MINIMIZE_DEPENDENCY_JARS" /* JAVA_EXTRACTOR_MINIMIZE_DEPENDENCY_JARS */} is already set to '${process.env["CODEQL_EXTRACTOR_JAVA_OPTION_MINIMIZE_DEPENDENCY_JARS" /* JAVA_EXTRACTOR_MINIMIZE_DEPENDENCY_JARS */]}', so the Action will not override it.`
|
||||
);
|
||||
} else if (await codeQlVersionAtLeast(codeql, "2.23.0") && // First version of the extractor to safely support this option
|
||||
config.dependencyCachingEnabled && config.buildMode === "none" /* None */ && config.languages.includes("java" /* java */)) {
|
||||
} else if (await codeQlVersionAtLeast(codeql, CODEQL_VERSION_JAR_MINIMIZATION) && config.dependencyCachingEnabled && config.buildMode === "none" /* None */ && config.languages.includes("java" /* java */)) {
|
||||
core13.exportVariable(
|
||||
"CODEQL_EXTRACTOR_JAVA_OPTION_MINIMIZE_DEPENDENCY_JARS" /* JAVA_EXTRACTOR_MINIMIZE_DEPENDENCY_JARS */,
|
||||
"true"
|
||||
@@ -90388,6 +90393,10 @@ async function runWrapper() {
|
||||
await checkForTimeout();
|
||||
}
|
||||
void runWrapper();
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
CODEQL_VERSION_JAR_MINIMIZATION
|
||||
});
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/fetch/body.js:
|
||||
|
||||
Reference in New Issue
Block a user