diff --git a/test-and-deploy.yml b/test-and-deploy.yml
index a6c72d7ebeaaef5e18b42179b230b518bc4fac63..b2afddab3e6dc07c7157b8b288c5d2f6937f30a8 100644
--- a/test-and-deploy.yml
+++ b/test-and-deploy.yml
@@ -62,6 +62,7 @@ stages:
     - ssh-keyscan gitlab.lakedrops.com >> ~/.ssh/known_hosts
     - chmod 644 ~/.ssh/known_hosts
     - ssh git@gitlab.lakedrops.com
+    - if [ -z $GITLAB_ACCESS_TOKEN ]; then composer config -g gitlab-token.gitlab.lakedrops.com $GITLAB_ACCESS_TOKEN; fi
     - composer install --no-interaction --no-progress
     - composer lakedrops:scaffold --no-interaction
     - composer lakedrops:docker4drupal --no-interaction