Change warning message to just v3 (exclude v1, v2).

This commit is contained in:
Mario Campos
2025-11-05 09:15:42 -06:00
parent 5aa2d63d5b
commit 6a63bc6af3
8 changed files with 9 additions and 9 deletions

2
lib/analyze-action.js generated
View File

@@ -87420,7 +87420,7 @@ function checkActionVersion(version, githubVersion) {
">=3.20"
)) {
core3.error(
"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/"
"CodeQL Action v3 will be deprecated in December 2026. 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");
}

View File

@@ -83164,7 +83164,7 @@ function checkActionVersion(version, githubVersion) {
">=3.20"
)) {
core3.error(
"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/"
"CodeQL Action v3 will be deprecated in December 2026. 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");
}

2
lib/init-action.js generated
View File

@@ -84741,7 +84741,7 @@ function checkActionVersion(version, githubVersion) {
">=3.20"
)) {
core3.error(
"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/"
"CodeQL Action v3 will be deprecated in December 2026. 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");
}

View File

@@ -83176,7 +83176,7 @@ function checkActionVersion(version, githubVersion) {
">=3.20"
)) {
core3.error(
"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/"
"CodeQL Action v3 will be deprecated in December 2026. 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");
}

View File

@@ -83252,7 +83252,7 @@ function checkActionVersion(version, githubVersion) {
">=3.20"
)) {
core3.error(
"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/"
"CodeQL Action v3 will be deprecated in December 2026. 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");
}

View File

@@ -86072,7 +86072,7 @@ function checkActionVersion(version, githubVersion) {
">=3.20"
)) {
core3.error(
"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/"
"CodeQL Action v3 will be deprecated in December 2026. 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");
}

View File

@@ -489,7 +489,7 @@ for (const [
t.true(
warningSpy.calledOnceWithExactly(
sinon.match(
"CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated.",
"CodeQL Action v3 will be deprecated in December 2026.",
),
),
);

View File

@@ -1116,7 +1116,7 @@ export async function checkDiskUsage(
/**
* Prompt the customer to upgrade to CodeQL Action v4, if appropriate.
*
* Check whether a customer is running v1, v2, or v3. If they are, and we can determine that the GitHub
* Check whether a customer is running v3. If they are, and we can determine that the GitHub
* instance supports v4, then log an error prompting the customer to upgrade to v4.
*/
export function checkActionVersion(
@@ -1142,7 +1142,7 @@ export function checkActionVersion(
))
) {
core.error(
"CodeQL Action major versions below v4 have either been deprecated or will soon be deprecated. " +
"CodeQL Action v3 will be deprecated in December 2026. " +
"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/",