From b56d9310e7cebaaf29a68ceb0d33c441307a8f8f Mon Sep 17 00:00:00 2001 From: Chris Fenner Date: Fri, 19 Dec 2025 08:08:21 -0800 Subject: [PATCH] delete CodeQL from hosted tool cache at start of PR, Push, and Release actions --- .github/workflows/pr.yml | 13 +++++++++++++ .github/workflows/push.yml | 13 +++++++++++++ .github/workflows/release.yml | 13 +++++++++++++ 3 files changed, 39 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index bbf5edf..beb28e9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -24,6 +24,19 @@ jobs: - name: Check sizes of directories in tools cache run: du -sh /opt/hostedtoolcache/* | sort -h + # A recent run of du -sh /opt/hostedtoolcache/* | sort -h yielded: + # 24K /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk + # 217M /opt/hostedtoolcache/Ruby + # 520M /opt/hostedtoolcache/PyPy + # 574M /opt/hostedtoolcache/node + # 1.1G /opt/hostedtoolcache/go + # 1.7G /opt/hostedtoolcache/CodeQL + # 1.9G /opt/hostedtoolcache/Python + # Since we are just building a Docker container we delete some unused + # pre-installed tools to make space. + - name: Free up disk space by deleting /opt/hostedtoolcache/CodeQL + run: rm -rf /opt/hostedtoolcache/CodeQL + # Login against a Docker registry # https://github.com/docker/login-action - name: Log into registry diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 242780f..c689da7 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -17,6 +17,19 @@ jobs: packages: write steps: + # A recent run of du -sh /opt/hostedtoolcache/* | sort -h yielded: + # 24K /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk + # 217M /opt/hostedtoolcache/Ruby + # 520M /opt/hostedtoolcache/PyPy + # 574M /opt/hostedtoolcache/node + # 1.1G /opt/hostedtoolcache/go + # 1.7G /opt/hostedtoolcache/CodeQL + # 1.9G /opt/hostedtoolcache/Python + # Since we are just building a Docker container we delete some unused + # pre-installed tools to make space. + - name: Free up disk space by deleting /opt/hostedtoolcache/CodeQL + run: rm -rf /opt/hostedtoolcache/CodeQL + # Login against a Docker registry # https://github.com/docker/login-action - name: Log into registry diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b60312c..ab3d4d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,19 @@ jobs: packages: write steps: + # A recent run of du -sh /opt/hostedtoolcache/* | sort -h yielded: + # 24K /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk + # 217M /opt/hostedtoolcache/Ruby + # 520M /opt/hostedtoolcache/PyPy + # 574M /opt/hostedtoolcache/node + # 1.1G /opt/hostedtoolcache/go + # 1.7G /opt/hostedtoolcache/CodeQL + # 1.9G /opt/hostedtoolcache/Python + # Since we are just building a Docker container we delete some unused + # pre-installed tools to make space. + - name: Free up disk space by deleting /opt/hostedtoolcache/CodeQL + run: rm -rf /opt/hostedtoolcache/CodeQL + # Login against a Docker registry # https://github.com/docker/login-action - name: Log into registry