Update deprecation warnings for CodeQL Action to v4

This commit is contained in:
Mario Campos
2025-11-04 09:59:16 -06:00
parent 95b1867cf7
commit 1aade295bc
7 changed files with 30 additions and 30 deletions

View File

@@ -83245,14 +83245,14 @@ async function checkDiskUsage(logger) {
}
}
function checkActionVersion(version, githubVersion) {
if (!semver.satisfies(version, ">=3") && // do not log error if the customer is already running v3
if (!semver.satisfies(version, ">=4") && // do not log error if the customer is already running v4
!process.env["CODEQL_ACTION_DID_LOG_VERSION_DEPRECATION" /* LOG_VERSION_DEPRECATION */]) {
if (githubVersion.type === 0 /* DOTCOM */ || githubVersion.type === 2 /* GHE_DOTCOM */ || githubVersion.type === 1 /* GHES */ && semver.satisfies(
semver.coerce(githubVersion.version) ?? "0.0.0",
">=3.11"
">=3.20"
)) {
core3.error(
"CodeQL Action major versions v1 and v2 have been deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v3. For more information, see https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated/"
"CodeQL Action major versions v1, v2, and v3 have been 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");
}