You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 71844e5
Browse filesBrowse the repository at this point in the historyBrowse files
Replace nightly-until-stable-<version> with nightly-until-default-<version>
Compares the threshold directly against the Action's known default CLI
version instead of querying the release list, per feedback.
Co-authored-by: felickz <1760475+felickz@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,8 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
6
6
7
7
- 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.
8
8
- 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-until-2.24.0`), which resolve to the most recent CodeQL Bundle release satisfying that version threshold, considering GitHub prereleases too unless `-stable` is specified, or fall back to the latest nightly version of the CodeQL tools if no such release exists.
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>` (for example `nightly-until-2.24.0`), which resolves to the most recent CodeQL Bundle release satisfying that version threshold, considering GitHub prereleases too, or falls back to the latest nightly version of the CodeQL tools if no such release exists.
10
+
- The `tools` input also now accepts `nightly-until-default-<version>` (for example `nightly-until-default-2.24.0`), which uses the default CodeQL CLI version for this environment if it satisfies that version threshold, or falls back to the latest nightly version of the CodeQL tools otherwise.
`'tools: ${toolsInput}' was requested, so using the default CodeQL version`,
895
+
]);
896
+
});
897
+
},
898
+
);
899
+
}
900
+
901
+
test.serial(
902
+
"getCodeQLSource falls back to the latest nightly bundle for 'tools: nightly-until-default-<version>', since the default CLI version does not satisfy the threshold",
903
+
async(t)=>{
904
+
constloggedMessages: LoggedMessage[]=[];
905
+
constlogger=getRecordingLogger(loggedMessages);
906
+
constfeatures=createFeatures([]);
907
+
908
+
constexpectedDate="30260213";
909
+
constexpectedTag=`codeql-bundle-${expectedDate}`;
910
+
911
+
// Ensure that we consistently select "zstd" for the test.
912
+
sinon.stub(process,"platform").value("linux");
913
+
sinon.stub(tar,"isZstdAvailable").resolves({
914
+
available: true,
915
+
foundZstdBinary: true,
916
+
});
917
+
918
+
// No release-list API request for the canonical CodeQL Action repository should be made;
919
+
// only the nightly repository's release list should be queried, via the same authenticated
0 commit comments