mirror of
https://github.com/github/codeql-action
synced 2026-05-23 20:00:54 +03:00
Rename to usesDefaultQueriesOnly
This commit is contained in:
Generated
+2
-2
@@ -106409,8 +106409,8 @@ async function checkOverlayAnalysisFeatureEnabled(features, codeql, languages, c
|
||||
return { enabled: false, reason: "language-not-enabled" /* LanguageNotEnabled */ };
|
||||
}
|
||||
if (enableForCodeScanningOnly) {
|
||||
const isCodeScanningOnly = codeScanningConfig["disable-default-queries"] !== true && codeScanningConfig.packs === void 0 && codeScanningConfig.queries === void 0 && codeScanningConfig["query-filters"] === void 0;
|
||||
if (!isCodeScanningOnly) {
|
||||
const usesDefaultQueriesOnly = codeScanningConfig["disable-default-queries"] !== true && codeScanningConfig.packs === void 0 && codeScanningConfig.queries === void 0 && codeScanningConfig["query-filters"] === void 0;
|
||||
if (!usesDefaultQueriesOnly) {
|
||||
return {
|
||||
enabled: false,
|
||||
reason: "non-default-queries" /* NonDefaultQueries */
|
||||
|
||||
+2
-2
@@ -692,12 +692,12 @@ async function checkOverlayAnalysisFeatureEnabled(
|
||||
// A code-scanning configuration runs only the (default) code-scanning suite
|
||||
// if the default queries are not disabled, and no packs, queries, or
|
||||
// query-filters are specified.
|
||||
const isCodeScanningOnly =
|
||||
const usesDefaultQueriesOnly =
|
||||
codeScanningConfig["disable-default-queries"] !== true &&
|
||||
codeScanningConfig.packs === undefined &&
|
||||
codeScanningConfig.queries === undefined &&
|
||||
codeScanningConfig["query-filters"] === undefined;
|
||||
if (!isCodeScanningOnly) {
|
||||
if (!usesDefaultQueriesOnly) {
|
||||
return {
|
||||
enabled: false,
|
||||
reason: OverlayDisabledReason.NonDefaultQueries,
|
||||
|
||||
Reference in New Issue
Block a user