Log result of validateWorkflow if not undefined

This commit is contained in:
Michael B. Gale 2024-11-12 15:50:28 +00:00
parent 6e3a010dfe
commit 58f2dfcb47
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
3 changed files with 12 additions and 3 deletions

View file

@ -329,8 +329,13 @@ async function run() {
zstdAvailability = initCodeQLResult.zstdAvailability;
core.startGroup("Validating workflow");
if ((await validateWorkflow(codeql, logger)) === undefined) {
const validateWorkflowResult = await validateWorkflow(codeql, logger);
if (validateWorkflowResult === undefined) {
logger.info("Detected no issues with the code scanning workflow.");
} else {
logger.warning(
`Unable to validate code scanning workflow: ${validateWorkflowResult}`,
);
}
core.endGroup();