diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6b8230557b36b11f14872cbf0a39fdcebed11c28..d905eed8307f4b078806ba9f3aa1f400902aede4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,7 +27,7 @@ format:
     stage: build
     script:
         - clang-format --version # we use clang-format-10 exclusively
-        - ./scripts/format_code.py
+        - ./ext/amfe/scripts/format_code.py
         - mkdir -p patches
         - if git diff --patch --exit-code > patches/clang-format.patch; then echo "Clang format changed nothing"; else echo "Clang format found changes to make!"; false; fi
     artifacts: