diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 644ad27a..80e0946f 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -15,7 +15,7 @@ jobs:
         run: |
           sudo apt-get install doxygen
       - name: Setup Python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v5
       - name: Install Python dependencies
         run: |
           pip install sphinx sphinx-rtd-theme breathe docutils