From 04c1e601ab6f7df0764dbb81819c892fdb5a43c7 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Sat, 28 Feb 2026 16:18:04 +0000 Subject: [PATCH] Add `defaultTestVersions` constant --- pr-checks/sync.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/pr-checks/sync.ts b/pr-checks/sync.ts index e57ffd8bd..d00276549 100755 --- a/pr-checks/sync.ts +++ b/pr-checks/sync.ts @@ -55,6 +55,30 @@ interface Specification { collection?: string; } +// The default set of CodeQL Bundle versions to use for the PR checks. +const defaultTestVersions = [ + // The oldest supported CodeQL version. If bumping, update `CODEQL_MINIMUM_VERSION` in `codeql.ts` + "stable-v2.17.6", + // The last CodeQL release in the 2.18 series. + "stable-v2.18.4", + // The last CodeQL release in the 2.19 series. + "stable-v2.19.4", + // The last CodeQL release in the 2.20 series. + "stable-v2.20.7", + // The last CodeQL release in the 2.21 series. + "stable-v2.21.4", + // The last CodeQL release in the 2.22 series. + "stable-v2.22.4", + // The default version of CodeQL for Dotcom, as determined by feature flags. + "default", + // The version of CodeQL shipped with the Action in `defaults.json`. During the release process + // for a new CodeQL release, there will be a period of time during which this will be newer than + // the default version on Dotcom. + "linked", + // A nightly build directly from the our private repo, built in the last 24 hours. + "nightly-latest", +]; + const THIS_DIR = __dirname; const CHECKS_DIR = path.join(THIS_DIR, "checks"); const OUTPUT_DIR = path.join(THIS_DIR, "new-output");