# My pdf compiler action is not allowed to push

**URL:** <https://forum.gitea.com/t/my-pdf-compiler-action-is-not-allowed-to-push/12133>\
**Category:** Actions\
**Created:** [May 24, 2026, 10:46pm UTC](https://forum.gitea.com/t/my-pdf-compiler-action-is-not-allowed-to-push/12133 "2026-05-24T22:46:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Achalogy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/achalogy/32/7418_2.png) [@Achalogy](https://forum.gitea.com/u/Achalogy)\
**Post date:** [May 24, 2026, 10:46pm UTC](https://forum.gitea.com/t/my-pdf-compiler-action-is-not-allowed-to-push/12133/1 "2026-05-24T22:46:25Z")

</div>

Hey, I was trying to create a workflow that compiles a typst pdf and then push it to the branch, so i wrote this workflow:

```auto
  - name: Commit and push PDF
    if: gitea.event_name == 'push'
    run: |
      git remote set-url origin https://Gitea_Acha_Actions:${{secrets.ACCESS_TOKEN}}@fakegitea/me/fakerepo.git
      git config --global user.name "fake_username"
      git config --global user.email "fake_username@fake_email"

      git add -f 1-fake.pdf
      git add -f 2-fake.pdf
      git add -f 3-fake.pdf
      git commit --author="fake_username < fake_username@fake_email>" -m "docs: actualizar PDF compilado [skip ci]" || echo "No hay cambios para committear"
      git push

```

It worked, but then I added branch protection, now it doesnt.

```auto
2026/05/24 22:37:28 .../private/hook_pre_receive.go:278:preReceiveBranch() [E] Unable to GetUserByID for commits from 3d7881791362d28607fdbc89e87a89ccb30e5871 to 4e7ed6dfa1626f92cbd4c84166bba95b1dfd8a10 in <Repository 2:repo/fake>: user does not exist [uid: -2, name:]

```

So I tried creating user `fake_username@fake_email` and using the access token generated, but still get that error.

```auto
2026/05/24 22:37:28 .../private/hook_pre_receive.go:278:preReceiveBranch() [E] Unable to GetUserByID for commits from 3d7881791362d28607fdbc89e87a89ccb30e5871 to 4e7ed6dfa1626f92cbd4c84166bba95b1dfd8a10 in <Repository 2:repo/fake>: user does not exist [uid: -2, name:]

```

why? ☹
