From a7a90f3ffb5a4b6dd45a5bda6db5bb187385c636 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Fri, 4 Sep 2026 10:10:52 +0100 Subject: [PATCH] Enable toolcache cleanup in the multi-language PR check The check installs the tools from a URL, so most versions in its matrix are downloaded rather than found in the toolcache, which is when the cleanup runs, and it then builds and analyses seven languages, so a bundle we damaged on the way in would show up. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/__multi-language-autodetect.yml | 1 + pr-checks/checks/multi-language-autodetect.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/__multi-language-autodetect.yml b/.github/workflows/__multi-language-autodetect.yml index 55023cd91..0a0f201ea 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -191,5 +191,6 @@ jobs: exit 1 fi env: + CODEQL_ACTION_CLEANUP_TOOLCACHE_BUNDLES: true CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI: true CODEQL_ACTION_TEST_MODE: true diff --git a/pr-checks/checks/multi-language-autodetect.yml b/pr-checks/checks/multi-language-autodetect.yml index b57e90ab4..b9d80d107 100644 --- a/pr-checks/checks/multi-language-autodetect.yml +++ b/pr-checks/checks/multi-language-autodetect.yml @@ -15,6 +15,7 @@ operatingSystems: - stable-v2.21.4 - stable-v2.22.4 env: + CODEQL_ACTION_CLEANUP_TOOLCACHE_BUNDLES: true CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI: true installGo: true installDotNet: true