From a7af85a7bd844b54586a867202fc9eb3550df3bf Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 14 May 2025 14:07:38 +0900 Subject: [PATCH] Use gh cache --- .github/workflows/codeql-analysis.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e2dc43c883..3aeed41b0a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -123,8 +123,6 @@ jobs: - name: Purge the oldest TRAP cache if: ${{ github.repository == 'ruby/ruby' && matrix.language == 'cpp'}} - run: | - gh extension install actions/gh-actions-cache - gh actions-cache list --key codeql --order asc --limit 1 | cut -f 1 | xargs -I{} gh actions-cache delete {} --confirm + run: gh cache list --key codeql --order asc --limit 1 --json key --jq '.[].key' | xargs -I{} gh cache delete {} env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }}