From cfb394096693c34f35d26029562491b6e6b7a3b4 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Mon, 9 Nov 2026 17:13:08 +0000 Subject: [PATCH] Respect `use-all-platform-bundle` for the latest nightly in `prepare-test` Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/actions/prepare-test/action.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/actions/prepare-test/action.yml b/.github/actions/prepare-test/action.yml index 4c11ec492..1276aca8e 100644 --- a/.github/actions/prepare-test/action.yml +++ b/.github/actions/prepare-test/action.yml @@ -36,7 +36,14 @@ runs: set -e # Fail this Action if `gh release list` fails. if [[ "$VERSION" == "nightly" || "$VERSION" == "nightly-latest" ]]; then - echo "tools-url=nightly" >> "$GITHUB_OUTPUT" + if [[ "$USE_ALL_PLATFORM_BUNDLE" == "true" ]]; then + # With `tools: nightly`, the Action downloads the bundle for the runner's platform, so look + # up the latest nightly release here to get its all-platform bundle instead. + tag=$(gh release list --repo dsp-testing/codeql-cli-nightlies --limit 1 --json tagName --jq '.[0].tagName') + echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/$tag/codeql-bundle.tar.gz" >> "$GITHUB_OUTPUT" + else + echo "tools-url=nightly" >> "$GITHUB_OUTPUT" + fi exit 0 elif [[ "$VERSION" == "linked" ]]; then echo "tools-url=linked" >> "$GITHUB_OUTPUT"