Skip to content

Commit 4a0b22e

Browse files
henrymercerCopilot
andcommitted
Delete unused CodeQL bundles from the toolcache before downloading
When we download a bundle the toolcache often already holds a different one that the job will not use, and on GitHub-hosted runners it shares a filesystem with the workspace, so it takes space away from the analysis. Empty the toolcache before downloading, which also frees space for the archive during extraction, and which is safe because getting as far as a download means the tools were not resolved from the toolcache. Skip this once a step has obtained the tools, since a later step may run a path it was given, and gate it on the runner being GitHub-hosted and on a feature flag that is off by default. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 762a5ed commit 4a0b22e

5 files changed

Lines changed: 889 additions & 367 deletions

File tree

0 commit comments

Comments
 (0)