Skip to content

Commit 1aade29

Browse files
committed
Update deprecation warnings for CodeQL Action to v4
1 parent 95b1867 commit 1aade29

File tree

7 files changed

+30
-30
lines changed

7 files changed

+30
-30
lines changed

lib/analyze-action.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/autobuild-action.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/resolve-environment-action.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/setup-codeql-action.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-sarif-action.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/util.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,38 +1114,38 @@ export async function checkDiskUsage(
11141114
}
11151115

11161116
/**
1117-
* Prompt the customer to upgrade to CodeQL Action v3, if appropriate.
1117+
* Prompt the customer to upgrade to CodeQL Action v4, if appropriate.
11181118
*
1119-
* Check whether a customer is running v1 or v2. If they are, and we can determine that the GitHub
1120-
* instance supports v3, then log an error prompting the customer to upgrade to v3.
1119+
* Check whether a customer is running v1, v2, or v3. If they are, and we can determine that the GitHub
1120+
* instance supports v4, then log an error prompting the customer to upgrade to v4.
11211121
*/
11221122
export function checkActionVersion(
11231123
version: string,
11241124
githubVersion: GitHubVersion,
11251125
) {
11261126
if (
1127-
!semver.satisfies(version, ">=3") && // do not log error if the customer is already running v3
1127+
!semver.satisfies(version, ">=4") && // do not log error if the customer is already running v4
11281128
!process.env[EnvVar.LOG_VERSION_DEPRECATION] // do not log error if we have already
11291129
) {
1130-
// Only error for versions of GHES that are compatible with CodeQL Action version 3.
1130+
// Only error for versions of GHES that are compatible with CodeQL Action version 4.
11311131
//
1132-
// GHES 3.11 shipped without the v3 tag, but it also shipped without this warning message code.
1133-
// Therefore users who are seeing this warning message code have pulled in a new version of the
1134-
// Action, and with it the v3 tag.
1132+
// GHES 3.19 shipped without the v4 tag, but it also shipped without this warning message code.
1133+
// Therefore, users who are seeing this warning message code have pulled in a new version of the
1134+
// Action, and with it the v4 tag.
11351135
if (
11361136
githubVersion.type === GitHubVariant.DOTCOM ||
11371137
githubVersion.type === GitHubVariant.GHE_DOTCOM ||
11381138
(githubVersion.type === GitHubVariant.GHES &&
11391139
semver.satisfies(
11401140
semver.coerce(githubVersion.version) ?? "0.0.0",
1141-
">=3.11",
1141+
">=3.20",
11421142
))
11431143
) {
11441144
core.error(
1145-
"CodeQL Action major versions v1 and v2 have been deprecated. " +
1146-
"Please update all occurrences of the CodeQL Action in your workflow files to v3. " +
1145+
"CodeQL Action major versions v1, v2, and v3 have been deprecated. " +
1146+
"Please update all occurrences of the CodeQL Action in your workflow files to v4. " +
11471147
"For more information, see " +
1148-
"https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated/",
1148+
"https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/",
11491149
);
11501150
// set LOG_VERSION_DEPRECATION env var to prevent the warning from being logged multiple times
11511151
core.exportVariable(EnvVar.LOG_VERSION_DEPRECATION, "true");

0 commit comments

Comments
 (0)