diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 87d5703d962127ffd3360f59273f50c6f0dfd6a9..403e463845d9455cbe4cd3f27caac7b5e73dd16f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,8 +8,11 @@
 # granted to it by virtue of its status as an Intergovernmental Organization  #
 # or submit itself to any jurisdiction.                                       #
 ###############################################################################
+variables:
+  TARGET_BRANCH: master
+
 check-copyright:
   image: gitlab-registry.cern.ch/ci-tools/ci-worker:cc7
   script:
-    - curl -o check_copyright.py "https://gitlab.cern.ch/lhcb-core/LbDevTools/raw/master/LbDevTools/CopyrightCheck.py?inline=false"
-    - python check_copyright.py origin/master
+    - curl -o lb-check-copyright "https://gitlab.cern.ch/lhcb-core/LbDevTools/raw/master/LbDevTools/SourceTools.py?inline=false"
+    - python lb-check-copyright origin/${TARGET_BRANCH}