mirror of
https://github.com/github/codeql-action.git
synced 2026-10-29 09:07:12 +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
@@ -185952,10 +185952,13 @@ async function getToolsInput(action, repositoryProperties) {
|
||||
}
|
||||
|
||||
// src/languages/swift.ts
|
||||
function isSwiftCompatible(action, config) {
|
||||
async function isSwiftCompatible(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(
|
||||
@@ -186488,7 +186491,7 @@ async function run3(actionState) {
|
||||
enableFileCoverageInformation: fileCoverageResult.enabled,
|
||||
logger: logger2
|
||||
});
|
||||
isSwiftCompatible(actionState, config);
|
||||
await isSwiftCompatible(actionState, config, codeql);
|
||||
if (repositoryPropertiesResult.isFailure()) {
|
||||
addNoLanguageDiagnostic(
|
||||
config,
|
||||
|
||||
Reference in New Issue
Block a user