My pdf compiler action is not allowed to push

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:

  - 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.

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.

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? :frowning: