Skip to content

Commit f1ca6a4

Browse files
committed
Update tests to reflect deprecation status of CodeQL Action v3
1 parent ba82f9b commit f1ca6a4

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/util.test.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,19 @@ const CHECK_ACTION_VERSION_TESTS: Array<[string, util.GitHubVersion, boolean]> =
449449
["2.2.1", { type: util.GitHubVariant.GHES, version: "3.10" }, false],
450450
["2.2.1", { type: util.GitHubVariant.GHES, version: "3.11" }, true],
451451
["2.2.1", { type: util.GitHubVariant.GHES, version: "3.12" }, true],
452-
["3.2.1", { type: util.GitHubVariant.DOTCOM }, false],
453-
["3.2.1", { type: util.GitHubVariant.GHE_DOTCOM }, false],
452+
["3.2.1", { type: util.GitHubVariant.DOTCOM }, true],
453+
["3.2.1", { type: util.GitHubVariant.GHE_DOTCOM }, true],
454454
["3.2.1", { type: util.GitHubVariant.GHES, version: "3.10" }, false],
455455
["3.2.1", { type: util.GitHubVariant.GHES, version: "3.11" }, false],
456456
["3.2.1", { type: util.GitHubVariant.GHES, version: "3.12" }, false],
457+
["3.2.1", { type: util.GitHubVariant.GHES, version: "3.19" }, false],
458+
["3.2.1", { type: util.GitHubVariant.GHES, version: "3.20" }, true],
459+
["3.2.1", { type: util.GitHubVariant.GHES, version: "3.21" }, true],
460+
["4.2.1", { type: util.GitHubVariant.DOTCOM }, false],
461+
["4.2.1", { type: util.GitHubVariant.GHE_DOTCOM }, false],
462+
["4.2.1", { type: util.GitHubVariant.GHES, version: "3.19" }, false],
463+
["4.2.1", { type: util.GitHubVariant.GHES, version: "3.20" }, false],
464+
["4.2.1", { type: util.GitHubVariant.GHES, version: "3.21" }, false],
457465
];
458466

459467
for (const [
@@ -480,9 +488,7 @@ for (const [
480488
if (shouldReportError) {
481489
t.true(
482490
warningSpy.calledOnceWithExactly(
483-
sinon.match(
484-
"CodeQL Action major versions v1 and v2 have been deprecated.",
485-
),
491+
"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/",
486492
),
487493
);
488494
} else {

0 commit comments

Comments
 (0)