mirror of
https://github.com/github/codeql-action.git
synced 2026-01-05 06:00:32 +08:00
Fix CodeQL version checks
This commit is contained in:
@@ -826,13 +826,10 @@ export async function getCodeQLForCmd(
|
||||
} else if (await util.codeQlVersionAbove(this, "2.12.4")) {
|
||||
codeqlArgs.push("--no-sarif-include-diagnostics");
|
||||
}
|
||||
if (await features.getValue(Feature.NewAnalysisSummaryEnabled, codeql)) {
|
||||
if (await features.getValue(Feature.NewAnalysisSummaryEnabled, this)) {
|
||||
codeqlArgs.push("--new-analysis-summary");
|
||||
} else if (
|
||||
await util.codeQlVersionAbove(
|
||||
codeql,
|
||||
CODEQL_VERSION_NEW_ANALYSIS_SUMMARY
|
||||
)
|
||||
await util.codeQlVersionAbove(this, CODEQL_VERSION_NEW_ANALYSIS_SUMMARY)
|
||||
) {
|
||||
codeqlArgs.push("--no-new-analysis-summary");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user