mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Always log when queries are configured in the repository properties
This commit is contained in:
5
lib/init-action.js
generated
5
lib/init-action.js
generated
@@ -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(
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user