mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 17:39:50 +00:00
Check if macOS version is unsupported
This commit is contained in:
31
lib/entry-points.js
generated
31
lib/entry-points.js
generated
@@ -186170,6 +186170,8 @@ async function getToolsInput(action, repositoryProperties) {
|
||||
}
|
||||
|
||||
// src/languages/swift.ts
|
||||
var SWIFT_TRACED_UNSUPPORTED_MACOS = 27;
|
||||
var SWIFT_TRACED_UNSUPPORTED_XCODE = 27;
|
||||
async function isSwiftCompatible(action, config, codeql) {
|
||||
if (!config.languages.includes("swift" /* swift */)) {
|
||||
return;
|
||||
@@ -186189,6 +186191,35 @@ async function isSwiftCompatible(action, config, codeql) {
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (version.major >= SWIFT_TRACED_UNSUPPORTED_MACOS) {
|
||||
const baseMessage = [
|
||||
`Traced Swift analysis is not supported on macOS ${SWIFT_TRACED_UNSUPPORTED_MACOS} or above.`,
|
||||
`Configure your analysis to run on macOS ${SWIFT_TRACED_UNSUPPORTED_MACOS - 1} or below`,
|
||||
`and XCode ${SWIFT_TRACED_UNSUPPORTED_XCODE - 1} or below.`
|
||||
].join(" ");
|
||||
action.logger.warning(baseMessage);
|
||||
addDiagnostic(
|
||||
config,
|
||||
"swift" /* swift */,
|
||||
makeDiagnostic(
|
||||
"codeql-action/unsupported-traced-swift-analysis-macos",
|
||||
"Traced Swift analysis is not supported on this version of macOS",
|
||||
{
|
||||
attributes: {
|
||||
languages: config.languages,
|
||||
macOSVersion: version.toString()
|
||||
},
|
||||
markdownMessage: baseMessage,
|
||||
severity: "warning",
|
||||
visibility: {
|
||||
cliSummaryTable: true,
|
||||
statusPage: true,
|
||||
telemetry: true
|
||||
}
|
||||
}
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// src/status-report/tools-download.ts
|
||||
|
||||
Reference in New Issue
Block a user