diff --git a/lib/init-action.js b/lib/init-action.js index 999135d85..8ff16f454 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -86262,7 +86262,7 @@ var RepositoryPropertyName = /* @__PURE__ */ ((RepositoryPropertyName2) => { return RepositoryPropertyName2; })(RepositoryPropertyName || {}); async function loadPropertiesFromApi(gitHubVersion, logger, repositoryNwo) { - if (gitHubVersion.type !== 0 /* DOTCOM */) { + if (gitHubVersion.type === 1 /* GHES */) { return {}; } try { @@ -86451,6 +86451,9 @@ function parseQueriesFromInput(rawQueriesInput, queriesInputCombines, errorToThr function combineQueries(logger, config, augmentationProperties) { const result = []; if (augmentationProperties.repoPropertyQueries && augmentationProperties.repoPropertyQueries.input) { + logger.info( + `Found query configuration in the repository properties (${"github-codeql-extra-queries" /* EXTRA_QUERIES */}): ${augmentationProperties.repoPropertyQueries.input.map((q) => q.uses).join(", ")}` + ); if (!augmentationProperties.repoPropertyQueries.combines) { if (!isDefaultSetup()) { logger.info( diff --git a/src/config/db-config.ts b/src/config/db-config.ts index 8e6dc501d..58e8cae45 100644 --- a/src/config/db-config.ts +++ b/src/config/db-config.ts @@ -383,6 +383,11 @@ function combineQueries( augmentationProperties.repoPropertyQueries && augmentationProperties.repoPropertyQueries.input ) { + logger.info( + `Found query configuration in the repository properties (${RepositoryPropertyName.EXTRA_QUERIES}): ` + + `${augmentationProperties.repoPropertyQueries.input.map((q) => q.uses).join(", ")}`, + ); + // If there are queries configured as a repository property, these may be organisational // settings. If they don't allow combining with other query configurations, return just the // ones configured in the repository properties.