From c443dff4332743a74bf05fba9238be34efe6545b Mon Sep 17 00:00:00 2001 From: Mario Campos Date: Tue, 4 Nov 2025 11:57:44 -0600 Subject: [PATCH] Simplify warning language to not enumerate deprecated versions. --- lib/analyze-action.js | 2 +- lib/autobuild-action.js | 2 +- lib/init-action.js | 2 +- lib/resolve-environment-action.js | 2 +- lib/setup-codeql-action.js | 2 +- lib/upload-sarif-action.js | 2 +- src/util.test.ts | 2 +- src/util.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/analyze-action.js b/lib/analyze-action.js index 71d744945..2f430478f 100644 --- a/lib/analyze-action.js +++ b/lib/analyze-action.js @@ -87420,7 +87420,7 @@ function checkActionVersion(version, githubVersion) { ">=3.20" )) { core3.error( - "CodeQL Action major versions v1, v2, and v3 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/" + "CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/" ); core3.exportVariable("CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION" /* LOG_VERSION_DEPRECATION */, "true"); } diff --git a/lib/autobuild-action.js b/lib/autobuild-action.js index 2047566b4..b5ddc0e40 100644 --- a/lib/autobuild-action.js +++ b/lib/autobuild-action.js @@ -83164,7 +83164,7 @@ function checkActionVersion(version, githubVersion) { ">=3.20" )) { core3.error( - "CodeQL Action major versions v1, v2, and v3 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/" + "CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/" ); core3.exportVariable("CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION" /* LOG_VERSION_DEPRECATION */, "true"); } diff --git a/lib/init-action.js b/lib/init-action.js index b693f5a3a..b8e617159 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -84741,7 +84741,7 @@ function checkActionVersion(version, githubVersion) { ">=3.20" )) { core3.error( - "CodeQL Action major versions v1, v2, and v3 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/" + "CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/" ); core3.exportVariable("CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION" /* LOG_VERSION_DEPRECATION */, "true"); } diff --git a/lib/resolve-environment-action.js b/lib/resolve-environment-action.js index 74c9ec425..1ed9fbfb3 100644 --- a/lib/resolve-environment-action.js +++ b/lib/resolve-environment-action.js @@ -83176,7 +83176,7 @@ function checkActionVersion(version, githubVersion) { ">=3.20" )) { core3.error( - "CodeQL Action major versions v1, v2, and v3 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/" + "CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/" ); core3.exportVariable("CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION" /* LOG_VERSION_DEPRECATION */, "true"); } diff --git a/lib/setup-codeql-action.js b/lib/setup-codeql-action.js index a7130eb28..ccf19aab2 100644 --- a/lib/setup-codeql-action.js +++ b/lib/setup-codeql-action.js @@ -83252,7 +83252,7 @@ function checkActionVersion(version, githubVersion) { ">=3.20" )) { core3.error( - "CodeQL Action major versions v1, v2, and v3 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/" + "CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/" ); core3.exportVariable("CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION" /* LOG_VERSION_DEPRECATION */, "true"); } diff --git a/lib/upload-sarif-action.js b/lib/upload-sarif-action.js index 4a1ec30d6..2a276bf50 100644 --- a/lib/upload-sarif-action.js +++ b/lib/upload-sarif-action.js @@ -86072,7 +86072,7 @@ function checkActionVersion(version, githubVersion) { ">=3.20" )) { core3.error( - "CodeQL Action major versions v1, v2, and v3 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/" + "CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/" ); core3.exportVariable("CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION" /* LOG_VERSION_DEPRECATION */, "true"); } diff --git a/src/util.test.ts b/src/util.test.ts index 07d88b0d9..6a3aeb6cb 100644 --- a/src/util.test.ts +++ b/src/util.test.ts @@ -489,7 +489,7 @@ for (const [ t.true( warningSpy.calledOnceWithExactly( sinon.match( - "CodeQL Action major versions v1, v2, and v3 have either been deprecated or will soon be deprecated.", + "CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated.", ), ), ); diff --git a/src/util.ts b/src/util.ts index 5bcf97323..bed223cc3 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1142,7 +1142,7 @@ export function checkActionVersion( )) ) { core.error( - "CodeQL Action major versions v1, v2, and v3 have either been deprecated or will soon be deprecated. " + + "CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. " + "Please update all occurrences of the CodeQL Action in your workflow files to v4. " + "For more information, see " + "https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/",