Always log when queries are configured in the repository properties

This commit is contained in:
Michael B. Gale
2025-09-23 09:44:52 +01:00
parent 4178e15b0a
commit 54bbe822cc
2 changed files with 9 additions and 1 deletions

5
lib/init-action.js generated
View File

@@ -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(

View File

@@ -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.