diff --git a/.gitlab/ci/build.gitlab-ci.yml b/.gitlab/ci/build.gitlab-ci.yml
index 79010b586d2db4301de69dd5d436964e3031d488..7fb30f4f25c63eee721a9252bab082d70974ffaa 100644
--- a/.gitlab/ci/build.gitlab-ci.yml
+++ b/.gitlab/ci/build.gitlab-ci.yml
@@ -17,10 +17,6 @@ build:ubuntu_cpp:
     # Check if a branch with the same name exist on the dependency repository
     - BRANCH_TO_PULL="dev" # default branch
     - set -x
-    # Get project information
-    - PROJECT_INFO=$(curl -s --header "PRIVATE-TOKEN:${CI_JOB_TOKEN}" "${API_URL}/projects/${PROJECT_PATH}")
-    # Parse owner information
-    - OWNER=$(echo "$PROJECT_INFO" | jq -r '.owner')
     - >
       if [ "$CI_MERGE_REQUEST_ID" ]; then # CASE MERGE REQUEST
           echo "Merge request pipeline detected"
@@ -45,6 +41,10 @@ build:ubuntu_cpp:
         fi
       fi
     - echo "Pulling from branch:\"$BRANCH_TO_PULL\""
+
+    # Get project information
+    - PROJECT_INFO=$(curl -s --header "PRIVATE-TOKEN:${CI_JOB_TOKEN}" "${API_URL}/projects/${DEPENDENCY_NAME}")
+    - OWNER=$(echo "$PROJECT_INFO" | jq -r '.owner')
     - echo "${CI_PROJECT_PATH}"
     - echo "${CI_PROJECT_DIR}"
     - echo "${CI_PROJECT_URL}"