diff --git a/.gitlab/ci/build_docker_images.yml b/.gitlab/ci/build_docker_images.yml
index a2755487c7abc5fa75d00fc83d1bc77d03a62b32..2fb297419cfc2a98c789ef468b8ccb84202e3ed1 100644
--- a/.gitlab/ci/build_docker_images.yml
+++ b/.gitlab/ci/build_docker_images.yml
@@ -46,6 +46,8 @@ cleanup_composer_image:
   needs: []
   variables:
     KEEP_N: 9   # Trim to the latest 9 revisions as the 10th will be deleted in the next stage
+  before_script:
+    - chmod go-r $KUBECONFIG
   script:
     - .gitlab/deployment_scripts/cleanup_revisions.sh