How to push a commit to Github from a CircleCI build using a personal access token : <p>When executing a build for git repository <code>giantswarm/docs-content</code> in CircleCI, I'd like to push a commit to another repository <code>giantswarm/docs</code>.</p>

<p>I have this in the <code>deployment</code> section of <code>circle.yml</code>:</p>

<pre><code>git config credential.helper cache
git config user.email "&lt;some verified email&gt;"
git config user.name "Github Bot"
git clone --depth 1 https://${GITHUB_PERSONAL_TOKEN}:x-oauth-basic@github.com/giantswarm/docs.git
cd docs/
git commit --allow-empty -m "Trigger build and publishing via docs-content"
git push -u origin master
</code></pre>

<p>This <a href="https://circleci.com/gh/giantswarm/docs-content/67" rel="noreferrer">fails</a> in the very last command with this error message:</p>

<pre><code>ERROR: The key you are authenticating with has been marked as read only.
fatal: Could not read from remote repository.
</code></pre>

<p>The <code>GITHUB_PERSONAL_TOKEN</code> environment variable is set to a user's personal access token, which has been created with <code>repo</code> scope to access the private repo <code>giantswarm/docs</code>. In addition, I added the user to a team that has admin permissions for that repo.</p>

<p>That series of commands works just fine when I execute it in a fresh Ubuntu VM. Any idea why it doesn't on CircleCI?</p>
