mirror of
https://github.com/github/codeql-action.git
synced 2026-05-02 03:40:10 +00:00
Update condition and comment for CQ-only config
This commit is contained in:
+4
-3
@@ -1131,9 +1131,10 @@ export async function initConfig(inputs: InitConfigInputs): Promise<Config> {
|
||||
|
||||
const config = await initActionState(inputs, userConfig);
|
||||
|
||||
// If Code Scanning analysis is disabled, then we initialise the database for Code Quality.
|
||||
// That entails disabling the default queries and only running quality queries.
|
||||
if (!isCodeScanningEnabled(config)) {
|
||||
// If Code Quality analysis is the only enabled analysis kind, then we will initialise
|
||||
// the database for Code Quality. That entails disabling the default queries and only
|
||||
// running quality queries. We do not currently support query customisations in that case.
|
||||
if (config.analysisKinds.length === 1 && isCodeQualityEnabled(config)) {
|
||||
// Warn if any query customisations are present in the computed configuration.
|
||||
if (hasQueryCustomisation(config.computedConfig)) {
|
||||
logger.warning(
|
||||
|
||||
Reference in New Issue
Block a user