From 3e58739c65d3c9ec50eda6506523bacfae244e1e Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Mon, 2 Feb 2026 08:18:36 +0000 Subject: [PATCH] Pin `@actions/tool-cache@3` in workflows to avoid failures with `github-script` --- .github/workflows/__bundle-from-toolcache.yml | 2 +- .github/workflows/__bundle-toolcache.yml | 2 +- pr-checks/checks/bundle-from-toolcache.yml | 2 +- pr-checks/checks/bundle-toolcache.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/__bundle-from-toolcache.yml b/.github/workflows/__bundle-from-toolcache.yml index 1512c5f38d..6e00eaa2d6 100644 --- a/.github/workflows/__bundle-from-toolcache.yml +++ b/.github/workflows/__bundle-from-toolcache.yml @@ -56,7 +56,7 @@ jobs: use-all-platform-bundle: 'false' setup-kotlin: 'true' - name: Install @actions/tool-cache - run: npm install @actions/tool-cache + run: npm install @actions/tool-cache@3 - name: Check toolcache contains CodeQL continue-on-error: true uses: actions/github-script@v8 diff --git a/.github/workflows/__bundle-toolcache.yml b/.github/workflows/__bundle-toolcache.yml index 0fac371052..d1ba1b8261 100644 --- a/.github/workflows/__bundle-toolcache.yml +++ b/.github/workflows/__bundle-toolcache.yml @@ -68,7 +68,7 @@ jobs: const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL'); fs.rmdirSync(codeqlPath, { recursive: true }); - name: Install @actions/tool-cache - run: npm install @actions/tool-cache + run: npm install @actions/tool-cache@3 - name: Check toolcache does not contain CodeQL uses: actions/github-script@v8 with: diff --git a/pr-checks/checks/bundle-from-toolcache.yml b/pr-checks/checks/bundle-from-toolcache.yml index 5642a15f9e..2719ccfb00 100644 --- a/pr-checks/checks/bundle-from-toolcache.yml +++ b/pr-checks/checks/bundle-from-toolcache.yml @@ -4,7 +4,7 @@ versions: - toolcache steps: - name: Install @actions/tool-cache - run: npm install @actions/tool-cache + run: npm install @actions/tool-cache@3 - name: Check toolcache contains CodeQL continue-on-error: true uses: actions/github-script@v8 diff --git a/pr-checks/checks/bundle-toolcache.yml b/pr-checks/checks/bundle-toolcache.yml index d3a15fcb41..eb196419ee 100644 --- a/pr-checks/checks/bundle-toolcache.yml +++ b/pr-checks/checks/bundle-toolcache.yml @@ -16,7 +16,7 @@ steps: const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL'); fs.rmdirSync(codeqlPath, { recursive: true }); - name: Install @actions/tool-cache - run: npm install @actions/tool-cache + run: npm install @actions/tool-cache@3 - name: Check toolcache does not contain CodeQL uses: actions/github-script@v8 with: