I have a Bitbucket Pipelines script that wants to push some changes back to the master branch.
If branch permissions are enabled (which I have) OAuth seems to be the preferred way to do that (see docs on pushing back using alternative authentication methods). So I set up an OAuth consumer for my org workspace but unfortunately, my script fails with Permission denied to update branch master.
The OAuth consumer has read/write permission to the repository but I cannot select it in the branch permission settings to allow write access. I have also tried to select Administrators without success.
If I set the write branch permission to Everyone it obviously works.
Does anyone know a way to make this work? Did I understand the docs on pushing back using alternative authentication methods wrongly?