From b043abc814613030e5ab2d87bd03fb40facbb02d Mon Sep 17 00:00:00 2001 From: RDW Date: Tue, 7 Jan 2025 22:45:06 +0100 Subject: [PATCH] CI: Disable TRAP caching for the CodeQL workflow This is filling the limited cache space with 600 MB BLOBs for every run. --- .github/codeql.env | 1 + .github/workflows/codeql.yml | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 .github/codeql.env diff --git a/.github/codeql.env b/.github/codeql.env new file mode 100755 index 00000000..18ae839a --- /dev/null +++ b/.github/codeql.env @@ -0,0 +1 @@ +CODEQL_ACTION_CLEANUP_TRAP_CACHES=true \ No newline at end of file diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index b331ac1b..6e794927 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -47,6 +47,13 @@ jobs: fetch-depth: 1 submodules: recursive + - name: Set up environment + run: | + set -a + source .github/codeql.env + cat .github/codeql.env >> $GITHUB_ENV + echo $(pwd) >> $GITHUB_PATH + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL scan uses: github/codeql-action/init@v3