From 4704ab18691cbc020ec00ac79ac5eb698ad192bc Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Fri, 10 Oct 2025 14:42:09 +0100 Subject: [PATCH] Fix swapped log levels --- lib/analyze-action.js | 4 ++-- lib/init-action-post.js | 4 ++-- lib/init-action.js | 4 ++-- lib/upload-lib.js | 4 ++-- lib/upload-sarif-action.js | 4 ++-- src/setup-codeql.ts | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/analyze-action.js b/lib/analyze-action.js index 8b30d734f..0f0e38d97 100644 --- a/lib/analyze-action.js +++ b/lib/analyze-action.js @@ -92363,11 +92363,11 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, varian ); } else { if (allowToolcacheValueFF) { - logger.info( + logger.warning( `Ignoring 'tools: ${toolsInput}' because the workflow was not triggered dynamically.` ); } else { - logger.warning( + logger.info( `Ignoring 'tools: ${toolsInput}' because the feature is not enabled.` ); } diff --git a/lib/init-action-post.js b/lib/init-action-post.js index 553b7d150..8b283fbe6 100644 --- a/lib/init-action-post.js +++ b/lib/init-action-post.js @@ -130345,11 +130345,11 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, varian ); } else { if (allowToolcacheValueFF) { - logger.info( + logger.warning( `Ignoring 'tools: ${toolsInput}' because the workflow was not triggered dynamically.` ); } else { - logger.warning( + logger.info( `Ignoring 'tools: ${toolsInput}' because the feature is not enabled.` ); } diff --git a/lib/init-action.js b/lib/init-action.js index e3f3ddacd..d47e42a78 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -89141,11 +89141,11 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, varian ); } else { if (allowToolcacheValueFF) { - logger.info( + logger.warning( `Ignoring 'tools: ${toolsInput}' because the workflow was not triggered dynamically.` ); } else { - logger.warning( + logger.info( `Ignoring 'tools: ${toolsInput}' because the feature is not enabled.` ); } diff --git a/lib/upload-lib.js b/lib/upload-lib.js index 9697d2eea..65b056603 100644 --- a/lib/upload-lib.js +++ b/lib/upload-lib.js @@ -90180,11 +90180,11 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, varian ); } else { if (allowToolcacheValueFF) { - logger.info( + logger.warning( `Ignoring 'tools: ${toolsInput}' because the workflow was not triggered dynamically.` ); } else { - logger.warning( + logger.info( `Ignoring 'tools: ${toolsInput}' because the feature is not enabled.` ); } diff --git a/lib/upload-sarif-action.js b/lib/upload-sarif-action.js index 41b14acad..7be0ff8b1 100644 --- a/lib/upload-sarif-action.js +++ b/lib/upload-sarif-action.js @@ -90851,11 +90851,11 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, varian ); } else { if (allowToolcacheValueFF) { - logger.info( + logger.warning( `Ignoring 'tools: ${toolsInput}' because the workflow was not triggered dynamically.` ); } else { - logger.warning( + logger.info( `Ignoring 'tools: ${toolsInput}' because the feature is not enabled.` ); } diff --git a/src/setup-codeql.ts b/src/setup-codeql.ts index 1a938ca89..9ee0c4b82 100644 --- a/src/setup-codeql.ts +++ b/src/setup-codeql.ts @@ -385,11 +385,11 @@ export async function getCodeQLSource( ); } else { if (allowToolcacheValueFF) { - logger.info( + logger.warning( `Ignoring 'tools: ${toolsInput}' because the workflow was not triggered dynamically.`, ); } else { - logger.warning( + logger.info( `Ignoring 'tools: ${toolsInput}' because the feature is not enabled.`, ); }