Combine product name and version into ProductVersion type

This commit is contained in:
Michael B. Gale
2026-10-30 16:57:53 +00:00
parent ce1de8daea
commit 410d706e43
2 changed files with 15 additions and 13 deletions

9
lib/entry-points.js generated
View File

@@ -194018,7 +194018,8 @@ async function checkSwiftCompatibility(config, codeql, darwinVersion2) {
// src/languages/traced.ts
var UNSUPPORTED_DARWIN_FOR_TRACED = 27;
var UNSUPPORTED_XCODE_FOR_TRACED = 27;
function handleUnsupportedVersion(logger2, config, tracedLanguages, abortUnsupportedTracedAnalysis, product, version) {
function handleUnsupportedVersion(logger2, config, tracedLanguages, abortUnsupportedTracedAnalysis, productVersion) {
const { product, version } = productVersion;
const unsupportedVersion = product === "macOS" ? UNSUPPORTED_DARWIN_FOR_TRACED : UNSUPPORTED_XCODE_FOR_TRACED;
const baseMessage = [
`Traced analysis is not supported on ${product} ${unsupportedVersion} or above.`,
@@ -194112,8 +194113,7 @@ async function checkRunnerSupportsTracedAnalysis(action, config, codeql) {
config,
tracedLanguages,
abortUnsupportedTracedAnalysis,
"macOS",
version
{ product: "macOS", version }
);
return;
}
@@ -194124,8 +194124,7 @@ async function checkRunnerSupportsTracedAnalysis(action, config, codeql) {
config,
tracedLanguages,
abortUnsupportedTracedAnalysis,
"Xcode",
xcodeVer
{ product: "Xcode", version: xcodeVer }
);
} else if (xcodeVer === void 0) {
action.logger.info(