title: How to push tag to a branch in a CI?
body: <p>I want to add a manual jobs to my Pull Request to tag my source branch when i run the manual jobs. This tag will trigger a build on my bitrise configuration.</p>
  <p>However, when i'm trying to push my tag, i am facing this issue.
  NB: The branch i'm trying to push my tag to is NOT protected.</p>
  <pre><code>$ git checkout $CI_COMMIT_REF_NAME
  Switched to a new branch 'feature/gitlab-ci'
  Branch feature/gitlab-ci set up to track remote branch feature/gitlab-ci from origin.
  $ git tag build-bitrise
  $ git push --tags
  remote: You are not allowed to upload code.
  fatal: unable to access 'https://gitlab-ci-token:[MASKED]@gitlab.com/my-app/my-app.git/': The requested URL returned error: 403
  Cleaning up file based variables
  00:01
  ERROR: Job failed: exit code 1
  </code></pre>
  <p>My job is doing so :</p>
  <pre><code>    - git remote show origin
      - git fetch
      - git checkout $CI_COMMIT_REF_NAME
      - git tag build-bitrise
      - git push --tags
  </code></pre>
  <p>In my &quot;before_scripts&quot; step, i do :</p>
  <pre><code>before_script:
      # Install ssh-agent through openssh-client if not present
      - 'which ssh-agent || ( apt-get update -qy &amp;&amp; apt-get install openssh-client -qqy )'
      # Add the private key to this user
      - eval $(ssh-agent -s) &amp;&amp; ssh-add &lt;(echo &quot;$SSH_PRIVATE_KEY&quot;) &amp;&amp; mkdir -p ~/.ssh
      # Config git to avoid first usage questions. Set the identity
      - git config --global user.email &quot;my-secret-email@gmail.com&quot; &amp;&amp; git config --global user.name &quot;Louis Lecocq&quot;
  </code></pre>
  <p>Where SSH_PRIVATE_KEY is a variable that is a copy/paste of my GITLAB profile in the ENV.</p>
  <p>Thanks for reading and your time</p>