diff --git a/.github/workflows/test-builds.yml b/.github/workflows/test-builds.yml
index d68c92fb291..c50a15399de 100644
--- a/.github/workflows/test-builds.yml
+++ b/.github/workflows/test-builds.yml
@@ -137,7 +137,7 @@ jobs:
 
     - name: Install PlatformIO
       run: |
-        pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
+        pip install -U https://github.com/platformio/platformio-core/archive/v5.2.5.zip
         platformio update
 
     - name: Run ${{ matrix.test-platform }} Tests
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 903b8b71fd3..ad3e15d5de6 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,6 +1,6 @@
 FROM python:3.9.0-buster
 
-RUN pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
+RUN pip install -U https://github.com/platformio/platformio-core/archive/v5.2.5.zip
 RUN platformio update
 # To get the test platforms
 RUN pip install PyYaml