Validate workflow within new log group

This cleans up the logs for `init`.
This commit is contained in:
Henry Mercer 2023-10-26 11:17:05 +01:00
parent edb8265ab8
commit 06662f546c
3 changed files with 5 additions and 1 deletions

2
lib/init-action.js generated
View file

@ -132,7 +132,9 @@ async function run() {
toolsDownloadDurationMs = initCodeQLResult.toolsDownloadDurationMs;
toolsVersion = initCodeQLResult.toolsVersion;
toolsSource = initCodeQLResult.toolsSource;
core.startGroup("Validating workflow");
await (0, workflow_1.validateWorkflow)(codeql, logger);
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:
// - The `init` Action is passed `debug: true`.

File diff suppressed because one or more lines are too long

View file

@ -255,7 +255,9 @@ async function run() {
toolsVersion = initCodeQLResult.toolsVersion;
toolsSource = initCodeQLResult.toolsSource;
core.startGroup("Validating workflow");
await validateWorkflow(codeql, logger);
core.endGroup();
config = await initConfig(
getOptionalInput("languages"),