mirror of
https://github.com/github/codeql-action.git
synced 2026-11-08 22:19:50 +00:00
Skip Swift checks if tools feature is enabled
This commit is contained in:
7
lib/entry-points.js
generated
7
lib/entry-points.js
generated
@@ -193851,10 +193851,13 @@ async function getToolsInput(action, repositoryProperties) {
|
||||
}
|
||||
|
||||
// src/languages/swift.ts
|
||||
function checkSwiftCompatibility(action, config) {
|
||||
async function checkSwiftCompatibility(action, config, codeql) {
|
||||
if (!config.languages.includes("swift" /* swift */)) {
|
||||
return;
|
||||
}
|
||||
if (await codeql.supportsFeature("swiftSupportsAllPlatforms" /* SwiftSupportsAllPlatforms */)) {
|
||||
return;
|
||||
}
|
||||
const version = macOSVersion(action);
|
||||
if (version === void 0) {
|
||||
throw new ConfigurationError(
|
||||
@@ -194388,7 +194391,7 @@ async function run3(actionState) {
|
||||
enableFileCoverageInformation: fileCoverageResult.enabled,
|
||||
logger: logger2
|
||||
});
|
||||
checkSwiftCompatibility(actionState, config);
|
||||
await checkSwiftCompatibility(actionState, config, codeql);
|
||||
if (repositoryPropertiesResult.isFailure()) {
|
||||
addNoLanguageDiagnostic(
|
||||
config,
|
||||
|
||||
Reference in New Issue
Block a user