Skip to content

Commit ada6eaf

Browse files
Copilotfelickz
andauthored
Add latest-prerelease and nightly-until<version> tools input forms
Co-authored-by: felickz <1760475+felickz@users.noreply.github.com>
1 parent 18e73d3 commit ada6eaf

6 files changed

Lines changed: 559 additions & 19 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
66

77
- The `tools` input for the `init` and `setup-codeql` Actions now accepts a bare CodeQL CLI version number, for example `2.19.0` or `v2.19.0`. The Action will automatically download the CodeQL Bundle release asset that matches the runner's operating system and architecture, preferring the smaller `zstd`-compressed bundle where it is supported.
88
- The `tools` input also now accepts a CodeQL CLI version range, for example `2.24.x`, `2.x`, `~2.24.0`, or `^2.24.0`, as well as `latest-<N>` (for example `latest-1`), which resolves to the CodeQL Bundle release `N` stable releases before the most recent one.
9+
- The `tools` input also now accepts `latest-prerelease`, which resolves to the most recent CodeQL Bundle release, whether it is a stable release or a GitHub prerelease, as well as `nightly-until<version>` and `nightly-until-stable<version>` (for example `nightly-until2.24.0`), which resolve to the most recent CodeQL Bundle release satisfying that version threshold, or fall back to the latest nightly version of the CodeQL tools if no such release exists.
910

1011
## 4.37.5 - 03 Aug 2026
1112

‎init/action.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ inputs:
1818
downloaded, or
1919
- `latest-<N>`, for example `latest-1` or `LATEST-2` (matching is case insensitive), which
2020
uses the CodeQL Bundle release `N` stable releases before the most recent one, or
21+
- A special value `latest-prerelease` (matching is case insensitive) which uses the most
22+
recent CodeQL Bundle release, whether it is a stable release or a GitHub prerelease, or
23+
- `nightly-until<version>` or `nightly-until-stable<version>`, for example
24+
`nightly-until2.24.0` or `NIGHTLY-UNTIL-STABLE2.24.0` (matching is case insensitive),
25+
which uses the most recent CodeQL Bundle release satisfying that version threshold,
26+
considering GitHub prereleases too unless `-stable` is specified, or falls back to the
27+
latest nightly version of the CodeQL tools if no such release exists, or
2128
- A special value `linked` which uses the version of the CodeQL tools
2229
that the Action has been bundled with.
2330
- A special value `nightly` which uses the latest nightly version of the

‎lib/entry-points.js‎

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

‎setup-codeql/action.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ inputs:
1818
downloaded, or
1919
- `latest-<N>`, for example `latest-1` or `LATEST-2` (matching is case insensitive), which
2020
uses the CodeQL Bundle release `N` stable releases before the most recent one, or
21+
- A special value `latest-prerelease` (matching is case insensitive) which uses the most
22+
recent CodeQL Bundle release, whether it is a stable release or a GitHub prerelease, or
23+
- `nightly-until<version>` or `nightly-until-stable<version>`, for example
24+
`nightly-until2.24.0` or `NIGHTLY-UNTIL-STABLE2.24.0` (matching is case insensitive),
25+
which uses the most recent CodeQL Bundle release satisfying that version threshold,
26+
considering GitHub prereleases too unless `-stable` is specified, or falls back to the
27+
latest nightly version of the CodeQL tools if no such release exists, or
2128
- A special value `linked` which uses the version of the CodeQL tools
2229
that the Action has been bundled with.
2330
- A special value `nightly` which uses the latest nightly version of the

0 commit comments

Comments
 (0)