diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d99450a7594cd18b6bf4f57dc5d3b941c3a1d58a..9a9e18361c84ae93b313265ed20fa6542e9c3307 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -65,6 +65,7 @@ gitlab-opentofu-image:build:
     - "$DOCKER_DIND_IMAGE"
   image: "$DOCKER_DIND_IMAGE"
   before_script:
+    - apk add git
     # See note on the `build terraform` job about this image
     - docker run --rm --privileged tonistiigi/binfmt
     # Registry auth