title: Cannot push from gitlab-ci.yml
body: <p>With my colleagues, we work on a C++ library that becomes more and more important each day. We already built continuous integration utilities through the <code>gitlab-ci.yml</code> file that let us:</p>
  
  <ul>
  <li>Build &amp; Test in Debug mode</li>
  <li>Build &amp; Test in Release mode</li>
  <li>Perform safety checks like memory leaks using Valgrind and checking if there is any clear symbol in our library we don't want inside it</li>
  <li>Generate documentation</li>
  </ul>
  
  <p>All kind of stuff that made us choose GitLab !</p>
  
  <p>We would like to profile our whole library and push the benchmarks in a separate project. We have already done something like for out documentation using the <strong>SSH key</strong> method but we would like to avoid this this time. </p>
  
  <p>We tried a script like this:</p>
  
  <pre><code>test_ci_push:
    tags:
      - linux
      - shell
      - light
    stage: profiling
    allow_failure: false
    only:
      - new-benchmark-stage
    script:
      - git clone http://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.mycompany.home/developers/benchmarks.git &amp;&gt; /dev/null
      - cd benchmarks
      - touch test.dat
      - echo "This is a test" &gt; test.dat
      - git config --global user.name "${GITLAB_USER_NAME}"
      - git config --global user.email "${GITLAB_USER_EMAIL}"
      - git add --all
      - git commit -m "GitLab Runner Push"
      - git push http://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.mycompany.home/developers/benchmarks.git HEAD:master
      - cd ..
  </code></pre>
  
  <p>We also tried a basic <code>git push origin master</code> to push our updated files but each time we got the same answer: </p>
  
  <pre><code>remote: You are not allowed to upload code for this project.
  fatal: unable to access 'http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.mycompany.home/developers/benchmarks.git/': The requested URL returned error: 403
  </code></pre>
  
  <p>Both projects are under the same <code>site</code> and I have the rights to push in both. Where am I doing anything wrong here ? </p>