Add a log in the OK case

This commit is contained in:
Henry Mercer 2023-10-26 19:45:45 +01:00
parent 06662f546c
commit 95c219819d
3 changed files with 7 additions and 3 deletions

4
lib/init-action.js generated
View file

@ -133,7 +133,9 @@ async function run() {
toolsVersion = initCodeQLResult.toolsVersion;
toolsSource = initCodeQLResult.toolsSource;
core.startGroup("Validating workflow");
await (0, workflow_1.validateWorkflow)(codeql, logger);
if ((await (0, workflow_1.validateWorkflow)(codeql, logger)) === undefined) {
logger.info("Detected no issues with the code scanning workflow.");
}
core.endGroup();
config = await (0, init_1.initConfig)((0, actions_util_1.getOptionalInput)("languages"), (0, actions_util_1.getOptionalInput)("queries"), (0, actions_util_1.getOptionalInput)("packs"), registriesInput, (0, actions_util_1.getOptionalInput)("config-file"), (0, actions_util_1.getOptionalInput)("db-location"), (0, actions_util_1.getOptionalInput)("config"), getTrapCachingEnabled(),
// Debug mode is enabled if:

File diff suppressed because one or more lines are too long

View file

@ -256,7 +256,9 @@ async function run() {
toolsSource = initCodeQLResult.toolsSource;
core.startGroup("Validating workflow");
await validateWorkflow(codeql, logger);
if ((await validateWorkflow(codeql, logger)) === undefined) {
logger.info("Detected no issues with the code scanning workflow.");
}
core.endGroup();
config = await initConfig(