diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml
index 4687d2e..8c37b12 100644
--- a/.github/workflows/linting.yml
+++ b/.github/workflows/linting.yml
@@ -26,7 +26,7 @@ jobs:
       # that is a composite of those states.
       # Only when the context is exactly the same, we will restore the cache.
       - name: Restore pip cache
-        uses: actions/cache@v2
+        uses: actions/cache@v4
         with:
           path: ${{ env.PIP_CACHE_DIR }}
           key: "python-0-${{ runner.os }}-\